google-code-export / simplejpa

Automatically exported from code.google.com/p/simplejpa
1 stars 0 forks source link

Fixes for OneToMany & latest Ehcache support #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a small patch which fixes the following issues:

1) Latest revision (r152) has issues querying OneToMany if the @Id field is 
called anything but id or the mapping is in a subclass (was basing off of 
the root class). Some minor fixes to oneToManyQuery() in ObjectBuilder and 
createAmazonQuery() in QueryImpl have fixed this without a performance 
penalty

2) Updated cache classes to support the latest versions of Ehcache. Some 
minimal refactoring was required. Dependencies for ehcache are now: 
ehcache-core-2.0.0-beta.jar, slf4j-api-1.5.8.jar, slf4j-jdk14-1.5.8.jar. 
These are all available in the latest ehcache-core release at: 
http://sourceforge.net/projects/ehcache/files/

3) Support to programmatically set SimpleJPA props via a Map if using 
SimpleJPAUtil (rather than being forced to use property file)

4) Incorporated Issue 24 patch

Original issue reported on code.google.com by jsjenkin...@gmail.com on 5 Feb 2010 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago
Applied and available in 1.0 RC2.

Original comment by treeder on 5 Feb 2010 at 6:22