Commit Graph

794 Commits

Author SHA1 Message Date
Jeremy Bauer 7425ffca2d OPENJPA-1613 Per JPA spec, OpenJPA should take the @Transient annotation into account when making a default access determination. This commit includes test code contributed by Simon Droscher.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@936930 13f79535-47bb-0310-9956-ffa450edef68
2010-04-22 16:12:50 +00:00
Pinaki Poddar 72b145a562 OPENJPA-703: Ignore prepared query if query using locks
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@935231 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 19:10:15 +00:00
Pinaki Poddar 296752741e OPENJPA-1628: Usability changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@934507 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:25:46 +00:00
Richard G. Curtis f90b0bb16f OPENJPA-1631: Add synchronization to AnnotationPersistenceXMLMetaDataParser.parse() method to make it thread safe.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@934100 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 18:37:14 +00:00
Pinaki Poddar 85b89a8701 OPENJPA-1628,OPENJPA-1187,OPENJPA-1622: Use javac's -s option to control output rather than extraneous -Aout option
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@933342 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 18:12:49 +00:00
Pinaki Poddar ce0ffe84f2 OPENJPA-1662: Add openjpa. prefix to Annotation Processor -A options
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932545 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 18:56:33 +00:00
Pinaki Poddar 6ccd59c32b OPENJPA-1662: Add openjpa. prefix to Annotation Processor -A options
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932544 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 18:55:31 +00:00
Donald Woods aa0ba90782 OPENJPA-1622 Move services file out of the builds and into the packaging jars
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932539 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 18:38:02 +00:00
Pinaki Poddar f95ac63c8b OPENJPA-1622: Support discovery. But hide by default. Add boolean flag -Aopenjpa.generate to activate
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932507 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 16:51:08 +00:00
Pinaki Poddar cfe2a0d236 OPENJPA-1622: Support discovery. But hide by default. Add boolean flag -Aopenjpa.generate to activate
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932480 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 16:06:19 +00:00
Pinaki Poddar f8b8ce8eb0 Remove commented lines. Add proper comments
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932206 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 00:54:24 +00:00
Richard G. Curtis 43988aba97 OPENJPA-1604: Override default lock level for NamedQueries when using the pessimistic lock manager. Code contributed by Pinaki Poddar and Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932094 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:32:36 +00:00
Pinaki Poddar db11713e8c OPENJPA-1618: Convert the value not the key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932054 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 18:35:56 +00:00
Richard G. Curtis 59cdb21326 OPENJPA-1604: Backing out the two previous commits while investigating a couple test failures.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@930957 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 20:48:54 +00:00
Fay Wang 670d59ef0f OPENJPA-1611: fix EMBEDDED attr type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@930721 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 17:28:52 +00:00
Pinaki Poddar e36547dafc OPENJPA-1604: Test for lock mode on named query and its impact on target SQL under pessimistic lock manager plus some usability changes. Does not restore backward compatibility with 1.2 behavior -- but removes the need to set the fecth plan hint etc and ensures named query lock mode other than NONE requires an active transaction.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@930049 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 17:23:46 +00:00
Pinaki Poddar 6f6e94df76 OPENJPA-1604: Add lock mode to QueryMetaData
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@929971 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 13:44:38 +00:00
Pinaki Poddar b1a2190cf3 OPENJPA-1602: Ignore prepared queries that use locks
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@928897 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 20:30:58 +00:00
Donald Woods c0ad7b61a7 OPENJPA-1597 Add openjpa.Compatibility option IgnoreDetachedStateFieldForProxySerialization which 2.0 apps can set to true to fall back to 1.0 behavior and defaults 1.0 apps to old behavior of not removing classes after EM.clear() is called.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@928128 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 03:12:07 +00:00
Albert Lee 0010c931cf OPENJPA-1599 - Retain em method user input property map content from modifications.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@927629 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 22:53:12 +00:00
Albert Lee 048ffd924d OPENJPA-1599 - Push Cache*Mode value(s) in fetch configuration set from property making the property value(s) only valid during the em method call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@927441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 15:08:55 +00:00
Michael Dick 666ec6c6de OPENJPA-1550:
Set failedObject on RollbackException.
Submitted By: Heath Thomann

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@927267 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 03:55:43 +00:00
Donald Woods b5b65a7d4b [maven-release-plugin] prepare release 2.0.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926437 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 02:27:40 +00:00
Kevin W. Sutter 43c4cff942 OPENJPA-1588. Removed the processing of the CacheStoreMode property from the convertToKernelValue method. Also, corrected the spelling of this method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925703 13f79535-47bb-0310-9956-ffa450edef68
2010-03-21 00:19:27 +00:00
Pinaki Poddar 1b9d80003a Allow user to set the cache mode enum values on EntityManager.setProperty() by String
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925451 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 21:55:44 +00:00
Pinaki Poddar 73b7d4748b OPENJPA-1491: Add OpenJPA-OSGi package description.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925293 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 16:05:36 +00:00
Michael Dick bd9b59c90f OPENJPA-1581:
make assertOpen public and call assertOpen before returning JPA cache

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924868 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 15:44:25 +00:00
Pinaki Poddar 1b20902b50 OPENJPA-1565,OPENJPA-1578:
Modify tests to raise correct lock/query exception
Fill in details in exception
Use retreive mode while initializing not store mode 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924626 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 03:42:50 +00:00
Pinaki Poddar 63079316a0 THrow IllegalArg exception on null argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924518 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 22:11:02 +00:00
Pinaki Poddar 992ba73a71 OPENJPA-1565: Raise correct Query/LockTimeout exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923928 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 18:39:02 +00:00
Jeremy Bauer 6d87bbdbb0 OPENJPA-1562 Committing code and test updates contributed by Dianne Richards. Refresh after remove was not throwing exception dictated by spec.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923849 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 16:32:14 +00:00
Pinaki Poddar 845f9b5018 OPENJPA-1578: Set CacheMode properties properly
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923755 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 14:30:53 +00:00
Donald Woods 7c748e62df OPENJPA-1491 When used in an OSGi environment with Apache Aries, the org.apache.openjpa.kernel.Bootstrap should use the OpenJPA bundle classloader instead of the application bundle classloader to instatiate a BrokerFactory. Also moved our BundleActivator from the openjpa module to openjpa-persistence module with a BundleUtils wrapper to remove direct OSGi class refs, so the BundleContext in it could be accessed by PersistenceProviderImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922397 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 19:05:30 +00:00
Pinaki Poddar 4be5a5a194 OPENJPA-1565: Raise correct time out exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922288 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 15:08:16 +00:00
Pinaki Poddar 572d593427 OPENJPA-1561: Cache criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922123 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 02:35:03 +00:00
Pinaki Poddar f0f89c7e0e OPENJPA-1561: Cache criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922119 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 02:25:52 +00:00
Fay Wang f69da24268 OPENJPA-1505: allow duplicate entity listeners to be configurable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921538 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 20:05:09 +00:00
Pinaki Poddar 5cb14fe384 OPENJPA-1053:: unwrap() query failure to throw correct exception and set rollback
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920981 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 16:54:55 +00:00
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