Issue number: entity-persistence functionality update
Obtained from: TopLink
Submitted by: Tom Ware
Reviewed by: TopLink Team
- wrap ValidationException to a PersistenceException in
createEntityManagerFactory and createContainerEntityManagerFactory
methods, added a new test model in cmp3 > validationfailed which
contains class with wrong annotations that cause ValidationException,
modified build script to build a seperate
validation-failed-testmodel.jar to test this, added a new PU "broken-PU"
for this specific test so that other tests run fine, added a new
directory in tltest > resources > validation-failed-testmodel
- DBPlatform updates for Derby and PostGreSQL. EJBQL updates for Exists
and GroupBy, removed implementation of
createContainerEntityManager(PersistenceUnitInfo) since it has now been
replaced by createContainerEntityManager(PersistenceUnitInfo, Map)
- Created an XMLConstants class for shared statics, made some changes to
MetadataAccessor (cleanup)
- SQLResultSetMapping updates and fix for issue 234
- More common code extraction - id-class, mapped-superclass
- More common code extraction - sequencing, flush, column, version, id,
directToField mappings
- Fixes to comply with the latest spec. + Fixed GlassFish issue 192.
- More common code extraction - embeddable, embedded, and embedded-id,
as well as attribute overrides.
- Annotation updates to the proposed final draft. Added
@SqlResultSetMappings and processing support. Transaction also includes
fixes Glassfish issues #240 and #251.
- Updates to entity-persistence testing to include table creation for
several tests that were not using it. Removed
EntityManagerFactory.getEntityManager
- wrapped oracle.toplink.essentials.exceptions.OptimisticLockException
in javax.persistence.OptimisticLockException for EJB3 spec compliance
- Part three of the implementation of order of execution of lifecyle
callback methods and entity listeners. Implemented according to the
spec. Some testing done, more is needed.
-Part two of the implementation of order of execution of lifecyle
callback methods and entity listeners. Only thing not supported is
overridden callback methods. Will be available in part 3 ... coming soon.
- Updated persistence xsd
- Implemented group by entity support.
-Part one of the implementation of order of execution of lifecyle
callback methods and entity listeners.
-Transaction includes validation on callback methods
-Update java.persistence exceptions with what is expected in the spec
Tested with full GlassFish build, Quicklook tests, entity-persistence
tests, and Oracle-internal tests