persistence@glassfish.java.net

Code refactoring for glassfish bug 3334 fix

From: Kyle Chen <xiaosong.chen_at_oracle.com>
Date: Wed, 15 Aug 2007 13:51:26 -0400

Issue Number: 3334
Submitted By: Kyle Chen
Reviewed by: TopLink Team

Short Description: This is the code refactoring for the bug3334 fix.
Added JPA property hierarchical search mechanism, the new method getProperty(Sting key)has been added into UnitOfWorkImpl, ClientSession, EntityManager and EntityManagerFactory, the method will search for the property first from itsown properties set, and then search for from its parent chain if it is not found.

Test: Tested with entity-persistence-tests as well as the bug3334 test cases (see attachment in the bug web page), No new automated test added due to this is the code refactoring.

The code has been checked in.