Commit Graph

666 Commits

Author SHA1 Message Date
Michael Dick e97e42b3eb OPENJPA-1749: Throw exception when incompatible configuration options are set
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@980070 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 14:30:05 +00:00
Pinaki Poddar a18edf3f92 OPENJPA-1746: Allow null values for configuration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@979427 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 20:19:52 +00:00
Pinaki Poddar 40e05de742 OPENJPA-1746: Allow null values for persistent unit configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@979426 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 20:18:22 +00:00
Michael Dick ebd30a7cc7 OPENJPA-1742: move cfName logic to JDBCConfiguration, add tests for nonJTADataSource
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@966600 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 11:57:45 +00:00
Fay Wang f8c32d45d2 OPENJPA-1726: fix Criteria Trim expression when running on Postgres.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@965575 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 18:26:13 +00:00
Albert Lee b4782910c5 OPENJPA-1733 - use exception toString() if exception message returns null.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@965573 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 18:12:43 +00:00
Albert Lee 4d5d3a6aed OPENJPA-1713 correct the push/pop clean up processing in EntityManagerImpl _plans map.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@959352 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 15:37:17 +00:00
Richard G. Curtis a88939693b OPENJPA-1701: Remove warning message from EntityManager.refresh(...) method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@957709 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24 20:43:19 +00:00
Richard G. Curtis 14cfcaa3cc OPENJPA-1692: Clean up extra initialization from PersistenceProviderImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954891 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 14:04:26 +00:00
Pinaki Poddar 3865aedfaa OPENJPA-1686: Upgrade to Java runtime version 5. Remove reflection.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954678 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 00:09:17 +00:00
Pinaki Poddar a873065db7 OPENJPA-1686: A first draft of support for generic graph. Correct mapping strategy on MappedSuperClass (they are not Embeddables)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@952893 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 02:43:46 +00:00
Jeremy Bauer 9d33fe34b8 OPENJPA-1685 Updated ValidatorImpl to remove potential whitespace within a comma separated list of validation groups.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@952730 13f79535-47bb-0310-9956-ffa450edef68
2010-06-08 16:41:27 +00:00
Donald Woods f0517dd09c add missing ASL 2.0 header
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@951487 13f79535-47bb-0310-9956-ffa450edef68
2010-06-04 16:47:10 +00:00
Pinaki Poddar 52402f1083 Missing error text for usage of named parameters in native SQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@947016 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 14:14:44 +00:00
Richard G. Curtis 3d5bfca72c OPENJPA-1563: Fix StackOverlfowError in JPAFacadeHelper.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@945172 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 14:10:30 +00:00
Pinaki Poddar 85ba2eada3 OPENJPA-1662: Remove usage of @Replicated annotation. Replace with openjpa.slice.ReplicatedTypes plug-in.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@943294 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 21:09:17 +00:00
Richard G. Curtis ee299cc0bd OPENJPA-1646: Move DataCacheManager initialization to EMF creation time to close timing window.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@940490 13f79535-47bb-0310-9956-ffa450edef68
2010-05-03 15:55:16 +00:00
Richard G. Curtis 78614963a0 OPENJPA-1634: Process JAXB metadata when preloading the MetaDataRepository.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@940093 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 19:00:23 +00:00
Richard G. Curtis 00799c73f0 OPENJPA-1563: Update JPAFacadeHelper.toOpenJPAObjectId(...) to perform validation on parameters.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@940077 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 16:53:56 +00:00
Donald Woods 94cc84d768 update license files to include full CDDL+GPL license text for persistence schemas, even though we're choosing CDDL. this was based on recent discussions between legal-discuss@apache, Aries and Geronimo projects.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@939892 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 01:16:12 +00:00
Pinaki Poddar d43fea80d8 OPENJPA-1643: Parse connection factory name. Add a constructor for serializability. Make CriteriaQuery sharable among slices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@939125 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 22:47:15 +00:00
Jeremy Bauer 90355300bb OPENJPA-1604 Added Optimistic check as part the logic for setting the default lock mode for named queries in order to retain 1.x behavior.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@938203 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 19:34:34 +00:00
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