Commit Graph

220 Commits

Author SHA1 Message Date
Pinaki Poddar d76c646acc OPENJPA-111: Validate native SQL parameters by the numbers of parameters in StoreQuery level and bypass validation at facade layer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686349 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:38:10 +00:00
A. Abram White fd15719a4b Eagerly compile JPQL queries to catch JPQL errors and throw proper exception as
required by spec.  OPENJPA-678



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686325 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:04:25 +00:00
Pinaki Poddar aae1260665 OPENJPA-693: Support 1.5 directional mapping where Parent maps its Children but Child refers to Parent via Parent's primary key value. Introduces a concept of implicit ForeignKey that marks the shared mapped column without any database schema impact.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:52:16 +00:00
Pinaki Poddar 0d3812fcb5 OPENJPA-687: Add read/write/hit statitics to DataCache/StoreCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684132 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 22:39:39 +00:00
Srinivasa Segu 2a5964a540 OPENJPA-166 - Fix to use the translated exception as the cause for rollback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684082 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 20:36:31 +00:00
Pinaki Poddar b683569de0 OPENJPA-485:
OPENJPA-497: Saving NPE

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 03:19:13 +00:00
Pinaki Poddar 45651cee86 OPENJPA-497: TemporalType conversion at facade level Query.
Also includes extensive changes in parameter validation logic and data structure.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681977 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 13:58:56 +00:00
Pinaki Poddar 9174b3f174 OPENJPA-44: Support 'metadata-complete' attribute to ignore class-level annotations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680520 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 21:56:58 +00:00
Michael Dick 64dbe4c924 [maven-release-plugin] prepare release 1.2.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680508 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 21:20:09 +00:00
Michael Dick fb78813259 OPENJPA-545 committing patch provided by Jeremy Bauer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@671319 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 19:48:23 +00:00
Pinaki Poddar d1a165bc61 OPENJPA-112,OPENJPA-111: Early check for 1-based positional parameter and no named parameter in native query. Also more specific error message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@669341 13f79535-47bb-0310-9956-ffa450edef68
2008-06-19 00:40:17 +00:00
Pinaki Poddar a8e0dc180e OPENJPA-458: Amplified SQL Exception processing. Introduced a new sql-error-state-codes.xml to specify database specific error code for different types of Store exceptions. This helps to narrow SQL exception to a specific errors which bubble up to user application.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@668814 13f79535-47bb-0310-9956-ffa450edef68
2008-06-17 20:07:12 +00:00
Patrick Linskey 6f6634bbad OPENJPA-522. Backporting r652035 to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666895 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:23:33 +00:00
Patrick Linskey 96dd926f4a OPENJPA-522. Backporting r652026 to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666894 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:22:54 +00:00
Michael Dick 981c023e0e OPENJPA-633 updating pom.xml files to be compatible with the maven-release-plugin. There are a lot of formatting changes which are needed to prevent the plugin from removing our copyright header.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666731 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 16:48:56 +00:00
Pinaki Poddar 89b296fd54 OPENJPA-610: OpenJPA internal exceptions are heuristically translated at facade-level to JPA-defined exception subtypes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661498 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 21:53:51 +00:00
Michael Dick 016f0bf61e OPENJPA-442 deprecating and adding javadoc
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@649956 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 19:09:19 +00:00
Michael Dick a35b53b27f OPENJPA-442 committing patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@649947 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 18:09:19 +00:00
Albert Lee 31c47a6c04 OPENJPA-570 - Model after the AnnotationPersistenceMetaDataParser.parsePackageAnnotations(), an extra test is performed in parseClassAnnotations() method for the Named*Quer* annotations to see if the MODE_QUERY has been performed before by examining the meta.getSourceMode() before the actualNamed*Queries() method is invoked.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@648275 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 15:12:11 +00:00
Albert Lee 5196ae0bc2 OPENJPA-565 - Ignore duplicate NamedQuery definition and continue to parse the remaining entries in NamedQueries definition.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@646378 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 14:31:33 +00:00
Patrick Linskey 8803104f41 moved release number to 1.2.0-SNAPSHOT now that we've made a 1.1.x branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@646049 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 19:40:02 +00:00
Patrick Linskey 690cb80eb9 Change OpenJPAEntityManagerFactory.getStoreCache(String) to create the cache on-demand if it doesn't exist. This turns an error condition into functional behavior, so there should be no backward-compat issue.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644635 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 07:34:53 +00:00
Albert Lee ee8155bb60 OPENJPA-552 Remove dis-allowing Connection* properties in
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644129 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 01:18:39 +00:00
Patrick Linskey b2c1e8f16f OPENJPA-544. Get rid of JDK1.4 support, fold the jdk1.5 modules into their siblings, get rid of some ugly reflection that was there for 1.5 support, and move to the java.util.concurrent collections classes. This includes a wrapper around ConcurrentHashMap that allows nulls, since the old OpenJPA concurrent map allowed nulls and we rely on that behavior. The implication is that putIfAbsent() and some of the other special JDK1.5 methods don't obey the same contracts as in the java.util.concurrent package.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640685 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 03:37:56 +00:00
Patrick Linskey 5f0094893e Fixed JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@638667 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 01:01:43 +00:00
Patrick Linskey 1b76c6df24 Possible fix for http://www.nabble.com/InstantiationException-in-latest-OpenJPA-build-tp15799949p15799949.html, which seems to be caused by an attempt to reflectively instantiate a ClassResolverImpl. I've done zero research into how this regression made its way into the codebase, and have not created a test case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633326 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:41:17 +00:00
Albert Lee 31778f01a8 Enable PersisentProviderImpl subclass to override the configuration impl used by class transformer. The current OpenJPAConfigurationImpl does not recognize options defined in its sub-class and posted an invalid warning message.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@628168 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 20:47:09 +00:00
Albert Lee 7ca1cfe20c Enable PersisentProviderImpl subclass to override the default BrokerImpl alias if none is defined in application.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@627668 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 05:43:22 +00:00
Patrick Linskey 3f439edc57 OPENJPA-506. Fixed behaviors for global listeners to get TCK working on trunk again. It turns out that global listeners and per-instance listeners are bound into the OpenJPA event framework differently.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618821 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 23:26:33 +00:00
Patrick Linskey a747db9443 OPENJPA-506. svn merge -c 617334 ../branches/1.0.x; svn merge -c 617363 ../branches/1.0.x, plus modifications for serialization.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@617525 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 15:46:51 +00:00
Catalina Wei b2a10e285f OPENJPA-477 no need to make changes to BootStrap, StateManagerImpl and PersistenceProviderImpl.
These files are restored to their previous version.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@615806 13f79535-47bb-0310-9956-ffa450edef68
2008-01-28 09:36:42 +00:00
Catalina Wei a8f6d3c116 OPENJPA-477 Making StoreManager more flexible and extensible
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614763 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 01:33:48 +00:00
Patrick Linskey 13dd4f2252 Improve error message when checking metadata access types; correct recursive method to always include superclass information.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614606 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 18:15:09 +00:00
Patrick Linskey 3aa60007dd OPENJPA-500
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614583 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 17:22:55 +00:00
Patrick Linskey d4a2929a57 OPENJPA-147 -- managed interface support. Also includes failure test case for OPENJPA-481.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610924 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 20:44:35 +00:00
Patrick Linskey 84205d6d50 Error message improvement: include nested exception in constructor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604981 13f79535-47bb-0310-9956-ffa450edef68
2007-12-17 20:06:44 +00:00
Patrick Linskey 008b249c24 OPENJPA-331. Checking in on behalf of Miroslav Nachev. Includes minor whitespace reformatting and @since tags for new source classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604621 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 12:30:15 +00:00
Marc Prud'hommeaux 787b57a486 OPENJPA-9 Use the same criteria for resolving the configuration file for the purposes of listing all the anchors as we do for actually parsing the file itself. Fixes the problem where specifing the property "persistence.xml" was not actually resolving /META-INF/persistence.xml in order to obtain the list of anchors.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604300 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 21:26:02 +00:00
Pinaki Poddar a54f842624 OPENJPA-462: Narrow StoreException by SQLException.getSQLState()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603001 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 19:15:35 +00:00
Marc Prud'hommeaux 1946a9b036 OPENJPA-9 not all configuration files are XML, so have getAnchorsInResource and getAnchorsInFile just return null if it isn't able to parse the specific configuration resources as XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@598557 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 08:35:35 +00:00
Patrick Linskey 5018dfaa88 OPENJPA-126: EntityManager serializability. Also includes a fix to make LoadListener.afterRefresh() work. Committing directly (not via remote queue) as I'm about to lose my internet connection for a while. Hopefully, my local testing is accurate.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597155 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 17:40:54 +00:00
Patrick Linskey 02f0a83dde Correctly override any configuration keys using a different prefix for the typed elements in a persistence.xml document.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596208 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 05:52:17 +00:00
Patrick Linskey 634bdc5c92 OPENJPA-9
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595508 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 00:51:07 +00:00
Patrick Linskey 98ef3d9063 OPENJPA-407. Assorted performance improvements found while working on this issue. This change does not include any SQL caching work.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590150 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 16:56:47 +00:00
Patrick Linskey c4f8a37d91 OPENJPA-404
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@586284 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 07:02:22 +00:00
Marc Prud'hommeaux abff87ef35 OPENJPA345 The last patch had the side effect that the artifact zip doesn't contain most of the required dependency jars (e.g., commons-lang), since the transitive dependencies are not followed to pick up these jars. Resolved this by explicitly listing the required jars in the openjpa-all dependencies. Also moved most of the dependency version numbers into the parent pom.xml dependencyManagement section to ensure that all dependency versions are the same.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581536 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 09:10:54 +00:00
Patrick Linskey bb527a1e88 OPENJPA-369. Committing Albert's 1.5-supporting changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@580451 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 18:23:48 +00:00
Kevin W. Sutter 6f43ce7d40 OPENJPA-385. Committing changes for both 1.0.x and 1.1.0 to properly skip and optionally log malformed .class files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@580087 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 16:36:48 +00:00
Kevin W. Sutter 7524219f6a OPENJPA-369. Committed Albert's changes for the Java 2 Security updates for the Solaris platform.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577029 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 19:44:06 +00:00
Pinaki Poddar 7c07cc6d1d OPENJPA-357, OPENJPA-358: Checking for user error of wrong fetch group inclusion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574293 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 16:20:08 +00:00