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
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