Commit Graph

756 Commits

Author SHA1 Message Date
Michael Dick c58af533fb OPENJPA-1178:
Remove uneeded imports

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920540 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:07:27 +00:00
Michael Dick 62092d763a OPENJPA-1118:
Remove Numbers.valueOf() - prefer autoboxing

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920503 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 20:43:37 +00:00
Donald Woods 14996dfd40 OPENJPA-1360 ReverseMappingTool omits nullable, length, etc. when ClassMapping.setEmbedded(true) is called
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920464 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 19:20:32 +00:00
Albert Lee 04b5e77c9e Removed un-used import.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920028 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 16:37:50 +00:00
Albert Lee 1c992feeb7 OPENJPA-1552 Add proper QueryImpl creation in EntityManagerImpl subclass.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920024 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 16:16:06 +00:00
Michael Dick 4dc0267629 OPENJPA-1551:
Storing connectionFactoryName in BrokerImpl - this factory will be used at JDBCStore creation time to override the value from the configuration

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919557 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 19:35:53 +00:00
Pinaki Poddar a7d613f3bf Categorize one-to-one correctly
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919502 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 17:06:29 +00:00
Pinaki Poddar 1950c467f7 toString() returns a JPQL-like query string, if possible. Otherwise Object.toString()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919501 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 17:06:02 +00:00
Pinaki Poddar e71cd295fc OPENJPA-1503: Throw persistence exception not illegalargument exception as per spec when fails to unwrap()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918748 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:50:55 +00:00
Donald Woods 3aea82e40c OPENJPA-1546 OpenJPA doesn't work as internal JPA inside web applicaion in JBoss AS due to PersistenceMetaDataFactory trying to parse directories as unparsed XML files. Original patch contributed by Dmitri Babaev.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918070 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 15:17:18 +00:00
Donald Woods d96883f502 OPENJPA-1538 Minor grammar fixes in messages. Patch contributed by Cathy Nordstrom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916759 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 17:04:35 +00:00
Donald Woods 0befad7051 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915979 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 21:04:54 +00:00
Donald Woods 099d18901e [maven-release-plugin] prepare release 2.0.0-beta2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915977 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 21:04:42 +00:00
Donald Woods fb57d61322 OPENJPA-1490 Add new message for pending Aries changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915900 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 17:59:43 +00:00
Albert Lee fa4b72d7f5 OPENJPA-1498 - Commit contribution by Cathy Nordstrom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915439 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 17:10:18 +00:00
Kevin W. Sutter b44715211e OPENJPA-1516. Introduce prepareForPooling method on EntityManagerImpl to allow for more efficient EntityManager "clear" operations. This also allows to go outside of the spec just a bit and clean up resources before pooling as well.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915015 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 18:53:45 +00:00
Donald Woods f738b0ba62 OPENJPA-1520 remove jdk5 profile
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911520 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 18:44:57 +00:00
Pinaki Poddar c043302e1e OPENJPA-1503: Set txn for rollback directly on illegal argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911241 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 01:28:00 +00:00
Pinaki Poddar ad106583e8 OPENJPA-1503:Metamodel reflection with security manager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@910616 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 17:44:30 +00:00
Fay Wang 4a987190d9 OPENJPA-1460: resolve visibility scope of orm.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908621 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 18:23:59 +00:00
Donald Woods d3b3ee0438 OPENJPA-1502 Improve WARN msg for unrecognized EntityManager properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908071 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 15:23:16 +00:00
Michael Dick 69c5eb11ff OPENJPA-1498. Minor message file improvements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@906993 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 16:37:54 +00:00
Pinaki Poddar 784e4560db OPENJPA-960: Block unwrap for Object.class or null argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@905355 13f79535-47bb-0310-9956-ffa450edef68
2010-02-01 18:28:18 +00:00
Fay Wang 7aad95a75b OPENJPA-1485: null collection value can still be treated as loaded.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@904728 13f79535-47bb-0310-9956-ffa450edef68
2010-01-30 04:46:42 +00:00
Fay Wang 54ef07f799 OPENJPA-1485: fix potential classCast exception for StateManagerImpl
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@903964 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 05:53:47 +00:00
Fay Wang 4197457c85 OPENJPA-1485: isLoaded util method should return true for an entity when an unloaded basic type is not in the fetch plan.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@903914 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 00:04:31 +00:00
Jeremy Bauer a32573481e OPENJPA-1485 Check persistent collection attributes for null when determining load state.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@903812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:57:59 +00:00
Donald Woods 9c90ca5506 merged in r902968 from beta branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902988 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 21:50:14 +00:00
Fay Wang c15f473949 OPENJPA-1460: back out the previous change until the visibility scope of orm.xml is fully agreed upon.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902291 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 22:11:39 +00:00
Donald Woods d299ac4311 OPENJPA-1410 Undo removal of code that was added by OPENJPA-1460
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901968 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 03:34:57 +00:00
Pinaki Poddar ec8dba1465 OPENJPA-1477: Do not use cached PreparedQuery unless it is initialized
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901845 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 20:17:50 +00:00
Donald Woods acafc94a5e OPENJPA-1410 Class linkage exception when creating an EMF with OpenJPA M3 caused by ValidationUtils.setupValidation(). First round of cleanup.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901385 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 21:24:14 +00:00
Donald Woods 9ea3fe0895 OPENJPA-1374 undo changes to PersistenceProviderImpl.java, which are for OPENJPA-1410 instead
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901384 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 21:22:10 +00:00
Donald Woods 2b2ede1e38 OPENJPA-1374 Enable junits to be executed against an in-memory Derby 10.5.3.0 db. Moved common Derby profiles to the parent POM. Added new Derby props in o-p-j which knocked 2 mins off build time. Added a test-derbymem profile to use Derby 10.5.3.0 as in-memory DB, which reduced build time by 5 mins.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901374 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 20:53:57 +00:00
Pinaki Poddar 1049796100 OPENJPA-1460: Rename the setter method
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900873 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 18:10:30 +00:00
Fay Wang 36e31ae445 OPENJPA-1460: resolve visibility scope of orm.xml.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900245 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 23:41:45 +00:00
Fay Wang 7f66117b5a OPENJPA-782: element collection field in orm.xml should not be serialized
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900236 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 22:47:47 +00:00
Jeremy Bauer fadd48fe5b OPENJPA-1115 Remaining delimited identifiers support, including pluggable identifier utility. Includes code and test contributions from Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899784 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 19:38:18 +00:00
Pinaki Poddar db20d8a011 OPENJPA-900: Reduce reflection cost. Enumerate hint keys.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899530 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:25:25 +00:00
Pinaki Poddar b5a412fd42 OPENJPA-900: Reduce reflection in hint processing. Redesign with explicit hint keys.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899529 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:23:15 +00:00
Donald Woods 55bf86a4c8 OPENJPA-1456 Replace StringBuffer usage with StringBuilder for minor performance/scalability improvement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@898168 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 03:31:11 +00:00
Richard G. Curtis 0efea474f2 OPENJPA-250: Committing to trunk. Submitted by Patrick Linskey, Simon Droscher, and Rick Curtis.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@898024 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 19:34:23 +00:00
Pinaki Poddar 775c627b80 OPENJPA-1445: Support enums as External values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893504 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 13:07:33 +00:00
Pinaki Poddar df5a403700 OPENJPA-1444: distinct query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893448 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 09:35:07 +00:00
Pinaki Poddar 29e919f2cc OPENJPA-1444: distinct query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893447 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 09:33:28 +00:00
Pinaki Poddar 3dee418d36 OPENJPA-1444: Use special result list for distinct query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893420 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 07:57:31 +00:00
Pinaki Poddar d491a9cbed OPENJPA-1439: Cover for InputStream/Reader type fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@892884 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 17:13:23 +00:00
Richard G. Curtis d8ef5c1792 OPENJPA-993: PersistenceProductDerivation.getAnchorsInxxx(..) should only return PUs that belong to OpenJPA.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@892877 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 16:44:27 +00:00
Fay Wang 5d9f08e728 OPENJPA-1432: preserve Compatibility flags set in compliance with the Specification.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@892397 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 23:24:23 +00:00
David Ezzio a05e007394 OpenJPA-1258: Applied Amy Yang's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@891465 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 23:02:25 +00:00
Pinaki Poddar fd5c79aabc OPENJPA-1050: Restore existing method signature but deprecate them.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@890857 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:15:21 +00:00
Donald Woods 60cae2ff51 OPENJPA-1103 Upgrade to 1.0-SNAPSHOT versions of the jpa2 and bv spec apis and remove the early access disclaimer.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889818 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 21:19:55 +00:00
Pinaki Poddar 4715cc737b OPENJPA-1050: Use generic types whenever possible. Replace ordered map with native implementation wrapper.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889800 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 20:32:16 +00:00
Pinaki Poddar 1aaa1aa086 OPENJPA-1409: Preserve type for currentDate/Time expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885989 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 22:51:01 +00:00
Pinaki Poddar ab52f1fa03 remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885978 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 22:36:16 +00:00
Pinaki Poddar 69517ce840 Save NPE on getting super type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885526 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 18:22:06 +00:00
Albert Lee 36a6df375b Avoid dependency on src folder from test case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885524 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 18:10:01 +00:00
Pinaki Poddar d4010d13e1 Reduce hint handling construction cost
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@883982 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 05:41:07 +00:00
Pinaki Poddar 5d765ea05b OPENJPA-1386: Improve handling of imports that can hide each other
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@883846 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 20:12:00 +00:00
Pinaki Poddar 0635172cbb Set proper return type on evaluated expression.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@883808 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 18:37:52 +00:00
Fay Wang c3a856faa0 OPENJPA-1396: fix metadata-complete problem so that it will override @Transient annotation in the entity class
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@882172 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 15:12:36 +00:00
Pinaki Poddar f1451e5fd8 OPENJPA-1392, OPENJPA-1393: countDistinct() and integer return type for size()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881638 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 00:53:03 +00:00
Pinaki Poddar d797bc1eda Support default projection for untyped result class, if possible.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881566 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 22:10:18 +00:00
Pinaki Poddar be2ff16fe3 OPENJPA-1391: Handle untyped collection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881529 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 21:16:23 +00:00
Pinaki Poddar 481bb3d6eb OPENJPA-1390: From.join(String attr) checks any attribute not only singular attributes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881495 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 20:35:20 +00:00
Pinaki Poddar c44c17bd77 Add error messages for attribute not found exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881381 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 17:13:48 +00:00
Pinaki Poddar fb82c6ad13 OPENJPA-1381: Ignore preapared query if lock mode changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881011 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 22:23:09 +00:00
Pinaki Poddar 9c275904f3 OPENJPA-1387: Revert unique colum related changes to before 880685 plus other changes after that related to OPENJPA-1051 and OPENJPA-1381.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880922 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 19:34:11 +00:00
Pinaki Poddar cfea146c29 OPENJPA-1381: Ignore preapared query if lock mode changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880891 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 18:27:20 +00:00
Pinaki Poddar 0d0daed2cb Literal value for empty disjunction and conjunction
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@836023 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 22:18:32 +00:00
Pinaki Poddar 6e630e827e OPENJPA-1386: Support field types that can hide each other
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835756 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 06:32:43 +00:00
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
Pinaki Poddar 0d24829c8c Bring test for isManageable() outside of per-broker loop
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813983 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 18:55:45 +00:00
Pinaki Poddar 677d34049c OPENJPA-1013: Refcator
1. Make implementaion non-public (mainly package scoped now)
   2. Promote to interface for contracts as much as possible
   3. Use more compact bridge pattern method signature

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813956 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 17:53:07 +00:00
Albert Lee ba5692da52 OPENJPA-1292 - Committing contribution submitted by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813879 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 15:27:39 +00:00
Pinaki Poddar b573799fc3 OPENJPA-1013: Tighten access to instance variables/methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813659 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 03:24:27 +00:00
Pinaki Poddar df860912a7 OPENJPA-1288: stop re-alias(). Added new utility to check validity of names for JPA reserved words and special symbols.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813658 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 03:22:00 +00:00
Fay Wang eb5baa42a2 OPENJPA-1286: use Compatibility to check if the relationship defined in the MappedSuperclass must be uni-directional.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813605 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:50:08 +00:00
Pinaki Poddar 8e96965225 OPENJPA-1288: alias() first version. Assumes in-place change and does not create new instance. Retired TupleElementImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813514 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 16:58:44 +00:00
Pinaki Poddar c28461ffdd OPENJPA-1290: package descriptors
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813141 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 22:23:27 +00:00
Catalina Wei c880fdeb7f OPENJPA-1287 Criteria query to generate 'optimize for 1 row' for DB2 if selection is an aggregate function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811159 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 22:34:08 +00:00
Pinaki Poddar e01390051b OPENJPA-1278,OPENJPA-1276,OPENJPA-1013:
Modify negation of predicate logic
  Promote interfaces from internal implementaion argument to  public interfaces
 Add Fetch Join and logical precedence order to CQL generation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810825 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 08:52:17 +00:00
Donald Woods 1908a91180 OPENJPA-1284 Fix missing 1.0 schema license headers and update NOTICE files with license header required wording
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810702 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 21:27:18 +00:00
Pinaki Poddar 817696298d OPENJPA-1276: preserve precedence order while rendering logical operators/operands
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810685 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 19:47:10 +00:00
Pinaki Poddar 0bd8204875 OPENJPA-1275: Align with JPA 2.0 Public Draft Version 2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810366 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 06:17:27 +00:00
Pinaki Poddar 0036dc5bfb OPNJPA-1275: Align with JPA 2.0 Public Draft 2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810347 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 03:03:48 +00:00
Pinaki Poddar 8c929e6e10 OPENJPA-1276: Add CQL for Parameter
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810306 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 23:23:07 +00:00
Jeremy Bauer 8a6a39dec7 OPENJPA-1275 Update schemas to 8/31 revision
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810261 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 21:48:25 +00:00
Pinaki Poddar a291185ad8 OPENJPA-1278: missing file
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810240 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 21:07:19 +00:00
Pinaki Poddar e39a9a09e0 OPENJPA-1278,OPENJPA-1276,OPENJPA-1265:
Add new OpenJPACriteriaXYZ interface for extended features. 
  Draft version of conversion of Criteria Query to a JPQL-like string
  The getter methods return non-live, non-null, mutable lists/sets

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810212 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 20:16:19 +00:00
Jeremy Bauer e6ccbb0c0d OPENJPA-1274 Support cascade detach specified in an XML mapping file
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809797 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 02:06:03 +00:00
Pinaki Poddar f214d9f397 OPENJPA-1013: Visitor pattern on criteria expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809037 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 21:37:45 +00:00
Pinaki Poddar 0795778d3d OPENJPA-1013: Visitor pattern for collecting declared parameters. Editing with parameters. Search within result usage.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809036 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 21:32:29 +00:00
Michael Dick 991cdcae7d OPENJPA-1271:
Enable CacheStoreMode and CacheRetrieveMode properties to be set for an EntityManager.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808981 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 18:25:08 +00:00
Pinaki Poddar 6305be480b OPENJPA-1225: Fail fast on wrong constructor() argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808513 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 16:53:50 +00:00
Pinaki Poddar f68c531a5b OPENJPA-1265: Support edit of Criteria Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808158 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 18:54:30 +00:00
Jeremy Bauer aedc261abc OPENJPA-1228 Updated persistence parser to use new default value for exclude-unlisted-classes in a JPA 2.0 persistence.xml while maintaining prior behavior for a 1.0 or unspecified version.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808149 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 18:23:11 +00:00
Jeremy Bauer ec43fccfff OPENJPA-1262 ORM Schema updates for EA7
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807686 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 16:14:00 +00:00
Michael Dick 964ab657ce OPENJPA-1264:
Enable shared-cache-mode persistence.xml element. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807662 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:08:16 +00:00
Fay Wang 9a4406038e OPENJPA-1174: default fetch type for ManyToOne and OneToOne is eager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807602 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 13:04:12 +00:00
Pinaki Poddar d45a82157e OPENJPA-1262: Missed file in commit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807445 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 01:18:04 +00:00
Pinaki Poddar e955866480 OPENJA-1262: EA7 Update.
Fetch method signature changed. 
  nullLiteral() method added

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807398 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 22:02:18 +00:00
Pinaki Poddar 4e6a98f634 OPENJPA-849,OPENJPA-1251: Property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:27:30 +00:00
Pinaki Poddar 814341420d OPENJPA-849, OPENJPA-1251: property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805565 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:20:26 +00:00
Pinaki Poddar cc29d284b8 OPENJPA-1013: Coalesce expression type minor bug.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804084 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 05:56:51 +00:00
Fay Wang 222e01d2f3 OPENJPA-1185: criteria embeddable subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804013 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:02:42 +00:00
Pinaki Poddar 21cece4f71 OPENJPA-1241: Support MapJoin.joinKey() for JPA 2.0. Needs special treatement because unlike other joins keys of Map is not an explicit persistent attribute. Introduces a notion of pseudo-attribute (Map.keySet()) of a pseudo managed type (a java.util.Map).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803657 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:35:47 +00:00
Fay Wang d5f14ebc02 OPENJPA-1240: Lob, Temporal, Enumerated on element collections annotations and in XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803547 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 15:03:45 +00:00
Jeremy Bauer 5b68196cf1 OPENJPA-1239 Corrected method which determines explicit access type to set explicit bit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803354 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 02:31:53 +00:00
Pinaki Poddar dc061e904f OPENJPA-1225:
Refactor FillStrategy out of ResultShape enum to a separate interface. 
Introduce CompoundSelections.MultiSelect
Use ObjectFactory for Tuple to save memory
Tune CriteriaExpressionBuilder to new result packing
Isolate ResultPacker (JPQL) from ResultShape (Criteria) completely 
Implement getSelection() for JPA 2.0

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802984 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 03:02:45 +00:00
Fay Wang 2b24b76a9c OPENJPA-1143: keys(map) and values(map) support for Criteria API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 21:32:52 +00:00
Pinaki Poddar 2d120b6363 OPENJPA-1013: 1. Avoid both LHS and RHS parameterized as ? = ? in SQL. Some databases do not like it.
2.  handle constant literal or empty arguments for Criteria predicates .
                           3. Parameter registration for subqueries roll up to the parent
                           4. MapKey of kernel is not a path so allPathImpl.toValue() is not kernel.Path

                            5. Clean up tests. Local result: Total : 435 Fails: 14 locally

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802273 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 23:57:51 +00:00
Pinaki Poddar d5fdddb9bf OPENJPA-1180: Parameter indexing for CriteriaQuery is the order of their registraion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802104 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 17:43:48 +00:00
Jeremy Bauer 233e258cb8 OPENJPA-1157 Added test which contains uses constraints and persistence metadata defined in XML. Updated ValidatorImpl to trace exceptions thrown as a result of creating the default validator factory.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802062 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 16:06:17 +00:00
Albert Lee cbfd6b88dd OPENJPA-1230 - Make sure the javax.persistence.validatin.mode value usage matches the spec's requirement(i.e. lower case).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801866 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 02:32:03 +00:00
Michael Dick 69b4dc2567 MetaModelImpl.populate() should only consider declaredFields (non-superclass).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801744 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06 17:46:49 +00:00
Albert Lee c1ac969c7d OPENJPA-1230 - transform javax.persistence.validatin.mode value to upper case before ValidationMode conversion.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801739 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06 17:37:34 +00:00
Pinaki Poddar e6a1e90988 OPENJPA-1013: Cleaning Expressions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801458 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 23:13:13 +00:00
Pinaki Poddar 02f2f3db70 OPENJPA-1225: Shape of Result. Refactor shape building to builder from query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801053 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 03:04:54 +00:00
Pinaki Poddar baaec8148b OPENJPA-1225: Shape of Result for Criteria query. Draft.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:07:54 +00:00
Jeremy Bauer 63cacaa1c9 OPENJPA-1208 Set compatibility options and validation mode based on persistence version.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800951 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:32:49 +00:00
Fay Wang 5b61d56ad2 OPENJPA-1180: fix ArrayIndexOutOfBound problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800851 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 15:40:03 +00:00
Donald Woods df073249f5 OPENJPA-1107 Updated TraversableResolver that calls only our OpenJPAPersistenceUtil. Updated OpenJPAPersistenceUtil.isLoaded() to handle UnsupportedOperationException when checking a detached entity and returns LoadState.UNKNOWN. Also added a testcase in TestPersistenceUtil to verify that caller gets isLoaded()==true for a detached entity and fixed a trace output in TestConstraints.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800568 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:14:43 +00:00
Michael Dick 17da1c9a7e OPENJPA-1089:
Adding EncryptionProvider configuration option.
Submitted By : Rick Curtis

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800504 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 19:25:44 +00:00
Pinaki Poddar bde4708bac OPENJPA-1180: Parameter processing for JPA 2.0. Query now distinguishes between bound and declared parameters. Holds all bound parameters in a single data structure instead of named/positional parameters in separate maps.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799848 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 12:03:09 +00:00
Michael Dick 655ec577e9 OPENJPA-1218:
Evict subclasses automatically when called from JPA facade.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799764 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:54:25 +00:00
Michael Dick ff932542e8 OPENJPA-1174:
Ensure lazy hint from mapping-file is handled the same as an annotation
Submitted by: Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799754 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:04:13 +00:00
Pinaki Poddar 385558d275 OPENJPA-1013: Clean up test cases. Make Path.get(String) generalized for Root/From. assert before String based navigation. Change ResultPacker. Make ParameterExpressionImpl.alias(String name) equivalent to setName().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799520 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 05:17:19 +00:00
Donald Woods 08d76bc36d OPENJPA-1107 Provide TraversableResolver for use with Bean Validation Factory. Current TraversableResolverImpl behaves identical to the default JPA aware one that BV providers must implement, so not sure why we have to provide this yet....
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799491 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 02:13:04 +00:00
Pinaki Poddar 39cad98231 OPENJPA-1013: Add support for JPA 2.0 result processing. Modify kerenl's ResultPacking logic to asses impact for JPA 2.0"
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799466 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 22:42:04 +00:00
Jeremy Bauer 9706a82960 OPENJPA-1175 Updated util methods to handle load state checking of embeddables and collections.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799425 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 19:34:33 +00:00
Michael Dick 5f83298a95 OPENJPA-1211:
Adding brackets.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799346 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 16:05:12 +00:00
Fay Wang 5432ffecbb OPENJPA-1211: check null value to prevent NPE.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799340 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 15:57:31 +00:00
Michael Dick aa72c08d44 OPENJPA-1211:
Add getPath method to FromImpl.
Remove @allowFailure annotation from passing testcases in TestStringCriteria. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799289 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 14:36:53 +00:00
Albert Lee d35e668190 OENJPA-1206 - Enable Java 2 security on BV buildDefaultValidatorFactory call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799155 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 02:09:02 +00:00
Pinaki Poddar 8ca7664bd9 OPENJPA-1013: Support constant TRUE|FALSE literals
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799071 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:52:03 +00:00
Fay Wang 0928de7512 OPENJPA-1202: code clean up
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799028 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 19:26:44 +00:00
Pinaki Poddar 91ab01643a OPENJPA-1198: Query by example.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799018 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 19:07:56 +00:00
Albert Lee ba84a115bc OENJPA-1206 - Enable Java 2 security on BV validate call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799013 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 18:58:00 +00:00
Fay Wang 1b128ce338 OPENJPA-1143: embeddable test case and support for Criteria
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798735 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 00:30:41 +00:00
Michael Dick 76e82998f6 OPENJPA-1202: Upgrade to Geronimo JPA 2.0 EA6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798684 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 19:49:03 +00:00
Donald Woods b7b0b15777 OPENJPA-1076 cleanup code formatting and add some comments about the current behavior of returning exceptions instead of null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798616 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 17:42:47 +00:00
Donald Woods a31b0ee95d OPENJPA-1076 Log current exceptions being thrown by PersistenceProviderImpl.createEMF
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798338 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 00:03:50 +00:00
Jeremy Bauer 60d17df05f OPENJPA-1175 Refactor of perisistence utility methods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798182 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 15:04:50 +00:00
Fay Wang 62a32c5596 OPENJPA-1143: embeddable support for Criteria API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798026 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 05:18:37 +00:00
Michael Dick e7f9191695 Add braces for a few one line if statements.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797626 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 19:29:51 +00:00
Jeremy Bauer 7022d018da OPENJPA-1175 Initial implementation and tests for ProviderUtil and PerisistenceUnitUtil
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797551 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 16:27:30 +00:00
Pinaki Poddar 7099c084fb OPENJPA-1195: Datastore function for in general usage as well as JPA 2.0. CriteriaQuery Parameter indexing during registration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797257 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 23:01:55 +00:00
Pinaki Poddar 001c9e4fd2 OPENJPA-1180: Parameter processing for JPA 2.0. Implements Parameter in concrete. Parameter holding structure in Query has changed for Map<String|Integer,Object> to Map<String|Integer, Parameter>. Parameters themselves hold values (a doubtful decision).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796931 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 02:47:11 +00:00
Michael Dick fc5d50bf18 OPWNJPA-1191
Adding messages exceptions thrown by TupleImpl

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796854 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 19:36:59 +00:00
Donald Woods c6e394d936 OPENJPA-1190 javax.persistence.Caching is now javax.persistence.spi.SharedCacheMode in EA5 (20090720) API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796790 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 16:42:08 +00:00