MergeStrategy Class
MergeStrategy is an 'Enum' that determines how entities are merged into an EntityManager.
Item Index
Properties
- OverwriteChanges static
- PreserveChanges static
Properties
OverwriteChanges
MergeStrategy
final
static
OverwriteChanges is used to allow merging to occur even if the existing entity in an entityManager is already in a EntityState/Modified state. In this case, the existing entity in the EntityManager is replaced by the 'merging' entity.
PreserveChanges
MergeStrategy
final
static
PreserveChanges is used to stop merging from occuring if the existing entity in an entityManager is already in a EntityState/Modified state. In this case, the existing entity in the EntityManager is not replaced by the 'merging' entity.
