Commit Graph

2891 Commits

Author SHA1 Message Date
Pinaki Poddar b1b1e0fc40 Changed column name for Order.count to CNT to save HSQLDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832308 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 06:01:45 +00:00
Pinaki Poddar e43c6f05a3 OPENJPA-1369: Change Order.count to column CNT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832306 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 05:50:45 +00:00
Pinaki Poddar f4c2b59df7 Changed column name for Order.count to CNT to save HSQLDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832304 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 05:39:56 +00:00
Pinaki Poddar 073ad1d797 Changed column name for Order.count to CNT to save HSQLDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832300 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 05:12:14 +00:00
Pinaki Poddar 90392e37d6 OPENJPA-1369: Change Order.count column name to save HSQLDB keyword name clash
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832117 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 21:43:17 +00:00
Pinaki Poddar 760cf901ed OPENJPA-1369: HSQLDB Error code for unique constraint violation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832095 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 20:40:31 +00:00
Pinaki Poddar 74b0ac1956 OPENJPA-1369: Use CONCAT function for HSQL 1.8.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 20:33:53 +00:00
Fay Wang d1feecbc9e OPENJPA-1371: wrong commit. Revert it to the previous version
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831627 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 00:52:48 +00:00
Fay Wang eabd0c9454 OPENJPA-1371: fail to extract correct id from an entity during merge when this entity has compound primary key using IdClass, and some field in the IdClass is a derived identity from a not-yet-managed toOne relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831626 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 00:50:15 +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
Donald Woods 1154f23a11 OPENJPA-1368 Upgrade to HSQLDB 1.8.0.10 and in-memory db for optional HSQLDB unit testing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831334 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 15:33:39 +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 d0cf5b404e Doc for metamodel generation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830961 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 14:27:32 +00:00
Donald Woods a24efc3c55 OPENJPA-839 Need to exclude new source and shade created jars from being used for the agent setting to the TCK
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830927 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 13:15:23 +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
Donald Woods 28dafc7aff OPENJPA-1363 Upgrade to latest commons-pool maintenance release
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830763 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:14:20 +00:00
Donald Woods a2abcbbfe3 OPENJPA-839 Fix jaxb depends for Java SE 5 users and keep it from getting pulled into the aggregate jars by the shade plugin. Also, removed duplicate maven-source-plugin usage in the parent pom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830721 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 18:54:53 +00:00
Jeremy Bauer 62cc18cecb OPENJPA-944: Updated test to run on Oracle by setting the dictionary option to use triggers for IDENTITY gen type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830709 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 18:20:12 +00:00
Michael Dick 530a190ebb OPENJPA-1141:
Optionally reorder MetaData resolution for entities which use derived IDs
Submitted By: Jody Grassel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830690 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 17:34:45 +00:00
Donald Woods cb31d309b2 OPENJPA-839 Create source jars for all artifacts by using maven-shade-plugin for the aggregate jars. Also, removed OSGi metadata from openjpa.jar, as this will be handled by a new openjpa-osgi.jar instead.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830564 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 14:45:15 +00:00
Pinaki Poddar 5016fc69f8 OPENJPA-944: Indirect recursion in fetch. Solution provided by Yanko Zhikov.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830431 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 03:43:27 +00:00
Pinaki Poddar 3ec0fbf66f OPENJPA-1354: DBCP getConnection with user/password
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830426 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 03:00:17 +00:00
Jeremy Bauer ad1029fde4 OPENJPA-1115 Wrap non-null sequence property values so they are processed as a single property value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830338 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 21:02:34 +00:00
Fay Wang 71f9f409c0 OPENJPA-871: change test case table name
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@829107 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 15:55:40 +00:00
Fay Wang b646b8810d OPENJPA-871: support JoinColumn in conjunction with MapsId annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828889 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:52:39 +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
Donald Woods 99816013ba OPENJPA-1356 Use maven-enforcer-plugin to verify proper Java and Maven levels
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828832 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 19:51:29 +00:00
Donald Woods 4f59bec34f OPENJPA-839 Create an aggregate sources jar
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828813 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 18:51:52 +00:00
Jeremy Bauer ec7f6f5b01 Modified same named entities to use unique table names. Also corrected an NPE in test cleanup which occurred when embeddable metadata was present in the metadata repository.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828786 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 17:12:01 +00:00
Michael Dick 105d46c6ea OPENJPA-1308:
Remove extraneous cast of VARCHAR to VARCHAR for DB2.
Submitted By: B.J. Reed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828772 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 16:19:17 +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
Donald Woods 721c6ce211 shouldn't be building osgi-tests right now
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828113 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 17:24:44 +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
Albert Lee 330b1f657a Re-factor unnecessary String concatenation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828079 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 16:15:53 +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
Donald Woods c753ce2278 OPENJPA-767 Start of true OSGi support, which uses the r828047 changes in the Geronimo JPA2 1.0-EA9 spec to resolve/load providers in OSGi. Still lots of work needed, so this is not in the normal builds yet.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828051 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 15:33:44 +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
Pinaki Poddar 2ef5d26a8e OPENJPA-1355: Correct argument list for Postgres dictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827712 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 15:54:34 +00:00
Jeremy Bauer 1dc5b3bd83 OPENJPA-926 Switch access type modification to log at trace instead of warning level. An access type change is normal under conditions such as XML overrides. A warning could be misconstrued as a problem that needs to be corrected in OpenJPA or application code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827638 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 15:00:48 +00:00
Pinaki Poddar 59c81b98aa OPENJPA-1121: Load user-defined Enums.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826959 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:40:40 +00:00
Pinaki Poddar afb95a595f OPENJPA-1085: Add toString() to PCStates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826953 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:02:19 +00:00
Pinaki Poddar 6d6645b7ed OPENJPA-1085: Add toString() to PCStates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826951 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 04:49:13 +00:00
Pinaki Poddar cc9644dafe Register type alias eagerly.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826944 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 03:58:17 +00:00