Pinaki Poddar
865dad93aa
OPENJPA-1385: Visit having clause to collect query parameters
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835628 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 23:10:46 +00:00
Pinaki Poddar
965c997c24
Generate MappedSuperClass through reverse mapping tool.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835285 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 07:46:32 +00:00
Pinaki Poddar
6f11e4d983
OPENJPA-1381: Ignore cached target query when lock mode is set
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835220 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 04:14:55 +00:00
Albert Lee
75f3a174a4
OPENJPA-1377 - convert property value to upper-case before converting to its corresponding enum type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@833826 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08 05:03:29 +00:00
Albert Lee
3e83d5d15b
OPENJPA-1375 - Clean _plans IdentityHashMap when clear or close is called.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@833150 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 19:54:32 +00:00
Pinaki Poddar
faf2966816
OPENJPA-1334: Refresh should ignore cache.retrieve.mode settings. Assorted changes in property processing for usability
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832874 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 21:18:38 +00:00
Catalina Wei
f25b573aa0
OPENJPA-1370 JPA2 missing implementation for createNamedQuery(String name, Class<T> resultClass)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831488 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 23:21:09 +00:00
Donald Woods
e1dcbce754
OPENJPA-1366 Remove need for an EMF from OpenJPAPersistenceUtil and TraversableResolverImpl. Also, updated EMFImpl.isLoaded() to use Util.isManagedBy() before Util.isLoaded(), since the entity should be managed by the queried EMF instance.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831406 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 18:02:15 +00:00
Jeremy Bauer
b8e690fb5c
OPENJPA-1366 Modified persistence util to do a direct ref comparison instead of iterating through all pu's when determining if an entity is managed within a pu.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831200 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 04:49:21 +00:00
Albert Lee
8c8636fce9
OPENJPA-1306 - Add basic extended lock scope support, 3 junit testing basic, secondary table, join table, inheritance entity, element collections (lazy/eager), 1x1 (lazy/eager) and 1xm (lazy/eager).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831194 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 04:09:05 +00:00
Pinaki Poddar
c5cc267219
OPENJPA-1337: Push/Pop fetch plan with find()/refresh()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830826 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 01:51:14 +00:00
Pinaki Poddar
41f750a8f1
OPENJPA-1337: Push/Pop fetch plan with find()/refresh()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830825 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 01:48:55 +00:00
Pinaki Poddar
dee384cb3c
Consolidate javax.persistence.* property processing
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830810 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 00:27:25 +00:00
Pinaki Poddar
5e73ca14ed
Consolidate property key-value processings for javax.persistence.* keys. They have been accumulating in OpenJPAConf and now moving to where they belong i.e. PersistenceProductDerivation. The value processing from String/integer/enums for these properties have also been spread across many places and now being localized.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830806 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 00:22:27 +00:00
Pinaki Poddar
13c88d75cf
OPENJPA-1334: i) Calibrate type-based cache eligibility logic to align better with new JPA 2 as well as previous @DataCache behavior.
...
ii) Use CacheMode settings via FetchPlan.
iii) Cleanup hint handler etc. Replace implementation by interface.
iv) Start organizing JPA property processing
v) Improve upon EntityManager.setProperty()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828880 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:33:13 +00:00
Richard G. Curtis
5d793884e6
OPENJPA-859: Fix checkstyle error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828278 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 01:41:03 +00:00
Richard G. Curtis
7a46717616
OPENJPA-859: Restructured testcase. Minor formatting change.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828242 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 22:45:36 +00:00
Albert Lee
e69163bdd5
Removed/re-factored unneeded trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828103 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 16:58:23 +00:00
Richard G. Curtis
f7568decb9
OPENJPA-859: Recommitting 818928. Added new test scenario for partial xml defined embeddable that implements Serializable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828072 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 15:57:00 +00:00
Pinaki Poddar
8abd836dcf
OPENJPA-1334: Support instance-based cache partition
...
move type-based cache eligibility logic to DataCacheManager from ClassMetaData.
Calibrate tests to new eligibility policy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827788 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 20:47:12 +00:00
Jeremy Bauer
04df2fac82
OPENJPA-1115 Committing code and tests contributed by Dianne Richards. This commit cleans up some issues with manual/user specified delimiters and adds initial support for full delimiting via the delimited-identifiers element in orm.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827727 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 16:31:39 +00:00
Fay Wang
acab37ec81
OPENJPA-871: maps-id xml support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826130 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 23:22:25 +00:00
Fay Wang
6d964387c8
OPENJPA-1013: Refactor correlated plural joins
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825969 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 16:01:08 +00:00
Richard G. Curtis
6d50e87a03
OPENJPA-250: Have preload process registered classes. Added simple preload testcase. Fixed problem where preloading wasn't being enabled due to a change in 821925.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825623 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 19:28:23 +00:00
Jeremy Bauer
cc59e096ef
OPENJPA-1349 Spec version property was being prematurely removed from the config map in the create container emf path. Spec version was always set to 2.0, thus compatibility and other options were not set properly for a 1.0 persistence.xml. Also added a test framework class that allows pseudo-testing of the createContainerEMF path using a specific persistence.xml and pu name.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825006 13f79535-47bb-0310-9956-ffa450edef68
2009-10-14 04:01:45 +00:00
Jeremy Bauer
bdd3014b5f
OPENJPA-1345: Update schemas to JPA Spec version EA9
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824847 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 17:19:45 +00:00
Pinaki Poddar
4f5a9dd676
OPENJPA-1345: Missing files from TeamCity auto-commit
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824574 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 02:57:15 +00:00
Pinaki Poddar
05d2a80417
OPENJPA-1345: Update to JPA Spec version EA9
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824568 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 02:06:19 +00:00
Albert Lee
87e07a9d47
OPENJPA-1344 Add checks for needed exception conditions.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824406 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 16:17:34 +00:00
Albert Lee
eb41b03ff4
OPENJPA-1344 Add checks for needed exception conditions.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824213 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 01:49:30 +00:00
Donald Woods
39240eb1ec
OPENJPA-1284 Fix missing schema license headers
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822348 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 16:59:37 +00:00
Richard G. Curtis
210581b625
OPENJPA250: Fix compile error.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821980 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 19:26:11 +00:00
Richard G. Curtis
38a54f39f7
OPENJPA-250: Moved preloading to later in the init process and only create MDR if preload is configured.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821925 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 17:14:29 +00:00
Michael Dick
cc5664fe2d
OPENJPA-1328:
...
Check cacheability in ClassMetaData instead of AbstractDataCache.
Merged patch from Jody Grassel to trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821450 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 23:40:49 +00:00
Richard G. Curtis
4c6ecef1ba
OPENJPA-859: Backing out 818928 while investigating a regression.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821084 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 16:32:49 +00:00
Donald Woods
fa02d2a5fa
OPENJPA-1229 get rat-maven-plugin passing again, as any file included in the source distribution has to pass rat:check
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820779 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 20:44:24 +00:00
Donald Woods
797de03a10
OPENJPA-1229 Update NOTICE files to match new ASF/Sun agreement for releasing early access specs. Also point to new geronimo-staging-017 to pickup latest spec releases under vote with updated notices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 15:19:10 +00:00
Pinaki Poddar
529bd3a876
OPENJPA-1276: Compound selection, JOIN clause rendering
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820307 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 15:47:45 +00:00
Pinaki Poddar
baf800f3b0
OPENJPA-1050: Use generics for BrokerFactory
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819800 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:32 +00:00
Richard G. Curtis
9c3a7117a8
OPENJPA-859: Handle having relational info in mapping file and annotations. Patch contributed by Rick Curtis.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818928 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 17:45:49 +00:00
Donald Woods
2eeca2a8ac
OPENJPA-1315 Incorrect hashcode()/equals() implementations in QueryImpl causes NPE in Eclipse debugger. Patch contributed by Tim McConnell.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818195 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 18:44:44 +00:00
Albert Lee
6485137930
OPENJPA-1323 Enhanced to conform to the new spec requirement.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818153 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 16:14:35 +00:00
Jeremy Bauer
fbb7e1208a
OPENJPA-1325 Defer embeddable population until after class metadata is parsed.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818134 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 15:07:31 +00:00
Donald Woods
abbda7df8e
OPENJPA-1319 Incorrect hashcode()/equals() implementations - EntityManagerImpl. Patch contributed by Tim McConnell.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817273 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 14:43:58 +00:00
Fay Wang
cf7f69bbd5
OPENJPA-1253: support non-default One-To-Many mappings
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816795 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 21:53:47 +00:00
Fay Wang
8c1e1a7ea5
OPENJPA-1253: support non-default uni-directional OneToMany using foreign key strategy, using JoinColumn annotation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 07:49:13 +00:00
Fay Wang
72f2cb8516
OPENJPA-1253: allow JoinColumn in conjunction with OneToMany annotation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815988 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 22:13:26 +00:00
Pinaki Poddar
3146afb1bc
Persistence attribute type for singular attributes
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815396 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 16:59:21 +00:00
Albert Lee
d062b254af
OPENJPA-1301 - Committing contribution by Tim McConnell
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815361 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 15:15:13 +00:00
Fay Wang
1e77f6a3e1
OPENJPA-1286: default isAbstractMappingUniDirectional to false
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814037 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 21:24:12 +00:00