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
4991e6bdc2
OPENJPA-1142 - Propagate lock level into LockException so that the proper optimistic/pessimistic exception is translated.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835190 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 02:04:12 +00:00
Fay Wang
983b34b68e
OPENJPA-1380: queryCache is not refreshed for cross-join jpql.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835054 13f79535-47bb-0310-9956-ffa450edef68
2009-11-11 20:40:18 +00:00
Jeremy Bauer
ab18db113b
OPENJPA-1248 Set null or empty_lob as appropriate when inserting a new streaming lob for update on Oracle. Also configured test to retain connection over the life of the tx and updated manual to document this requirement.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834564 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 17:53:32 +00:00
Albert Lee
8f2ed40ac9
Use List<SQLException> generic.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834281 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 23:50:09 +00:00
Richard G. Curtis
19eb9f2615
OPENJPA-1379: Fixed locking problem in AbstractQueryCache when using timestamp eviction policy and added new test case.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834252 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 22:02:15 +00:00
Jeremy Bauer
218f57a731
Fixed minor syntax bug in ORM file.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834181 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 19:29:15 +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
Donald Woods
00fcf4cfd3
OPENJPA-839 fix pom data so unprovided depends will be pulled automatically by maven and mark JAXB depends as optional
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832878 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 21:35:07 +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
Jeremy Bauer
f0ad193611
Fixed test case failure which occurs on DB platforms that use non-default max embedded LOB size.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832816 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 17:48:29 +00:00
Jeremy Bauer
ac531c5875
OPENJPA-1083 Fixed a mapping tool failure caused by the inability to discover and drop multi-column foreign key constraints. Multi-column FK's were not getting dropped, but got added after clearing out the tables. Trying to add an existing FK caused an exception when using Oracle.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832587 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 22:48:43 +00:00
Albert Lee
ea6499afc0
OPENJPA-1306 - Correct secondary table locking problem and test cases to match. Also fixed multiple SQLs validation test case problem.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832506 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 18:50:48 +00:00
Pinaki Poddar
d59954d4b4
Check for null clob
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832357 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 09:22:42 +00:00
Pinaki Poddar
2ff77531c2
Changed column name for Order.count to CNT to save HSQLDB
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832328 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 07:56:07 +00:00
Pinaki Poddar
48a8b22b7b
OPENJPA-1369: Change Order.count to column CNT
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832318 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 07:13:58 +00:00
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