persistence@glassfish.java.net

Re: entity-persistence update

From: Tom Ware <tom.ware_at_oracle.com>
Date: Fri, 12 May 2006 09:11:02 -0400

Ok.

1. For the refactoring, a number of options to setup non-EJB 3.0 TopLink
features have been exposed through persistence unit properties. There
will be some online documentation available soon.

2. Bug 5052530

The following sequence of steps would result in an exception in a Java
SE deployment using an application-managed EntityManager

        EntityManagerFactory emFactory =
Persistence.createEntityManagerFactory("default");
        emFactory.close();
        emFactory = Persistence.createEntityManagerFactory("default");
        emFactory.close();

3. Bug 5159332

Added some configuration options to allow ddl generation to be more
usable outside of GlassFish. There is now a toplink.ddl-generation.mode
flag that can be set to:

- database - ddl is generated directly to the database
- sql-script - ddl is generated in a sql script
- both

Online documetation will be available soon, but this change simply
better-exposes features that were always available

4. Bug 5206739

Entities that had components defined both in ORM XML and in annotations
required that did not have the table defined in XML would use the
default table instead of the one defined in annotations.

Marina Vatkina wrote:

>Tom,
>
>Can you please be more specific about the changes? Unless there is a public
>way to browse Oracle bug tracking system, your descriptions are not quite
>helpful.
>
>thanks,
>-marina
>
>Tom Ware wrote:
>
>
>>Issue number: entity-persistence update
>>Obtained from: TopLink
>>Submitted by: Tom Ware
>>Reviewed by: TopLink Team
>>
>>-ailitche_ri_jpa_and_emsetup_refactoring_060505 JPA properties and
>>query hints, em setup refactoring. Fixed tl bug 5052530: CREATING A
>>SECOND EMF AFTER CLOSING THE FIRST RESULTS IN EXCEPTION; GF 602
>>-gpelleti_ri_5159332_060508 BUG 5159332 - AUTOMATIC TABLE CREATION FOR
>>EJB 3.0 ENTITIES DOES NOT WORK
>>-gpelleti_ri_gf647_060509 Glassfish Issue #647 - Timestamp not
>>supported for @Version
>>-gpelleti_ri_5206739_060508 BUG 5206739 - ESSENTIALS: @TABLE DEFINED IN
>>ENTITY DOESN'T TAKE EFFECT WHEN NO <TABLE> IN XML
>>
>>Tested with QuickLook, entity-persistence-tests, and Oracle-internal tests
>>
>>Diff files are included for above transactions.
>>
>>