Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] How to use unitOfWork.getUnitOfWorkChangeSet()


according to the docs:

public UnitOfWorkChangeSet getUnitOfWorkChangeSet()
ADVANCED: Returns the currentChangeSet from the UnitOfWork. This is only
valid after the UnitOfWOrk has commited successfully.

I do not use UnitOfWork explicitely. I do tx = em.getTransaction(),
em.merge(entity) and then tx.commit(). em.getUnitOfWork() returns the
UnitOfWork in this way. But why is the UnitOfWorkChangeSet null?

How is the correct way to use getUnitOfWorkChangeSet or are the docs wrong?

Kind regards,

Back to the top