Hitachi

uCosminexus Application Server Compatibility Guide


9.4.7 managed entity

You can use the contains() method of EntityManager to obtain information about whether the entity instance is being managed with the current persistence context.

This section describes the conditions for the return value of the contains() method.

The actual insert and delete processing in the database is delayed until the conclusion of the transaction. At the same time, note that the propagation of persist and remove is applied immediately with the contains method.

Make sure that the entity instance is only managed using a single persistence context in the application. With Cosminexus JPA Provider, the operations do not function properly when the same Java instance is managed with multiple persistence contexts.