Commit Graph

753 Commits

Author SHA1 Message Date
Milosz Tylenda 13819e01f7 OPENJPA-466: Get rid of possible duplicate sequence values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773999 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 17:43:28 +00:00
Catalina Wei f221b1fa85 OPENJPA-1064 JPA2 Query add support for embeddable of element collection in predicate and subquery
- Add test strings for any, some, member of predicates
- Fix a bug in parameter processing of embeddable object

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773776 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 04:12:27 +00:00
Milosz Tylenda c26d742712 OPENJPA-736: Restore method signatures per Albert's request
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773666 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 19:51:39 +00:00
Catalina Wei 4606fffc37 OPENJPA-703 PreparedQuery detecting query cache-ability
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773404 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 21:11:36 +00:00
Pinaki Poddar 3213665811 OPENJPA-1079: Allow connection to be accessed by the client
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773284 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 23:18:58 +00:00
Jeremy Bauer 3eff16e07a OPENJPA-1074 Maintain contiguous index for collection element removal
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773070 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 19:53:16 +00:00
Fay Wang 3182ed978e OPENJPA-1072: set up foreign key relationship for the relation within an embeddable in an element collection.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772874 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 07:48:08 +00:00
Pinaki Poddar da17643624 OPENJA-1070:support for composite foreign keys on MySQL Version >= 5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772828 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 01:31:37 +00:00
Milosz Tylenda 195525392c OPENJPA-736: Change the way generated keys are retrieved so that the feature works also with databases other than DB2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772756 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 19:57:34 +00:00
Michael Dick 09a77eeae3 OPENJPA-1067. Do not call setQueryTimeout for DB2 on Z/OS
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772456 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 22:40:43 +00:00
Pinaki Poddar b68eeddd7d Capture post-compilation result type in prepared query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772291 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 14:56:15 +00:00
Catalina Wei ed82fda48c OPENJPA-1064 JPA2 Query add support for embeddable of element collection in predicate and subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772015 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 00:03:09 +00:00
Fay Wang f9fd4837b3 OPENJPA-1055: add MapKeyTemporal and MapKeyEnumerated support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770400 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:07:18 +00:00
Jeremy Bauer 02846623a8 OPENJPA-964 Committing contributions provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770297 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 15:50:53 +00:00
David Ezzio 09859699f9 OpenJPA-1002: fixed select range for Oracle drivers, patch submitted by Amy Yang and Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769505 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:14:40 +00:00
Pinaki Poddar 2c7432cccd OPENJPA-703: Set original query string for prepared query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768395 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 18:49:46 +00:00
Catalina Wei f3b437ab76 1035 JPA2 Query allow embeddable as orderby item
add more test strings for IS NULL and IS EMPTY predicates with path navigation thru key path or embeddable

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767084 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 09:21:02 +00:00
Catalina Wei 32fd2a52d1 1035 JPA2 Query fix setParameter for key path in predicates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766576 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 05:21:40 +00:00
Milosz Tylenda 4d1b86e860 OPENJPA-933: Database version detection in MySQLDictionary is not reliable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766310 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 12:26:26 +00:00
Fay Wang 8bbf149781 OPENJPA-1024: subquery support of nullif and coalesce for enum literals
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766204 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 02:54:35 +00:00
Jeremy Bauer d9039ca640 OPENJPA-1029 SQLServerDictionary updates contributed by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765841 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 03:15:38 +00:00
Fay Wang 0daf1bffc8 OPENJPA-1041: allow orderBy on nested embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765800 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 23:24:07 +00:00
Catalina Wei 5239148763 1035 JPA2 Query map key path in predicates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765469 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 05:34:49 +00:00
Catalina Wei affdc073d0 OPENJPA-1035 JPA2 Query allow map key/value path to appear as argument to scalar functions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765064 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 06:18:17 +00:00
Fay Wang 0398c0e7dd OPENJPA-1024: support case expression in subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764779 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 13:53:41 +00:00
Milosz Tylenda 171fe56aa2 OPENJPA-966: Added missing super call from within MySQLDictionary.decorate(Connection) method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764733 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 10:47:56 +00:00
Catalina Wei 4da7ad3790 OPENJPA-967 JPA2 Query support for embeddable MapKey improvement/rework
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764279 13f79535-47bb-0310-9956-ffa450edef68
2009-04-12 03:19:46 +00:00
Catalina Wei 8c31381f18 OPENJPA-1021 allow MapKey on relation field
- add JPA2 Query support for MapKey on relation field
- remove @AllowFailure in test cases

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764218 13f79535-47bb-0310-9956-ffa450edef68
2009-04-11 16:47:15 +00:00
Fay Wang d00cf9d468 OPENJPA-1024: support enum literal in case expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764094 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 22:57:00 +00:00
Jeremy Bauer 69d01f2813 OPENJPA-1034 Remove OrderColumn attributes and corresponding tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764041 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 20:38:28 +00:00
Milosz Tylenda 62aabafc53 OPENJPA-983: FirebirdDictionary improvements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763992 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 17:57:57 +00:00
Fay Wang 16c8b6d2dc OPENJPA-1024: add enum literal support for case expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763860 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 02:51:31 +00:00
Catalina Wei be8731aafa OPENJPA-967 JPA2 Query support for MapKey fixes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763516 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 05:11:20 +00:00
Fay Wang 2901ea6e52 OPENJPA-1028: fixed setMappedByValue when embeddable is involved.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763427 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 22:06:56 +00:00
Fay Wang d0cb71dd59 OPENJPA-1021: support MapKey annotation on relation fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763015 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 22:32:36 +00:00
Catalina Wei df18282acd OPENJPA-1024 JPA2 support scalar expressions in subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762854 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 17:06:19 +00:00
Michael Dick b5d5ea2734 OPENJPA-1023. set svn:eol on .properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762563 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 23:28:17 +00:00
Albert Lee bdce39ae28 OPENJPA-1022 - Ensure LockMode READ/OPTIMISTIC & WRITE/OPTIMISTIC_FORCE_INCREMENT are distinct in type but semantics equivalent.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762409 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 16:30:24 +00:00
Albert Lee 983775de06 OPENPA-957 - Correct > 80 columns build problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762181 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 22:56:16 +00:00
Albert Lee bb01292ce9 OPENJPA-957 - Guard NPE as fetch may be null in getForUpdateClause.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762177 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 22:37:24 +00:00
Albert Lee 718370e1ef OPENJPA-957 - Create Fetch*HintHandler(s) for property processing in EntityManager/Query interface methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762161 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 21:29:42 +00:00
Milosz Tylenda 616f8fdbee OPENJPA-723: Feature request for PostgreSQL XML Column Mapping
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762073 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 12:07:49 +00:00
Catalina Wei 5e820a36c9 OPENJPA-967 JPA2 Query embeddable MapKey rework
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761851 13f79535-47bb-0310-9956-ffa450edef68
2009-04-04 01:10:30 +00:00
Michael Dick b6e661e24a OPENJPA-1015 fix line wrapping in source files. Based on patch contributed by B.J. Reed. Updates made to do enforce line wrapping during the process-sources phase of the build.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761509 13f79535-47bb-0310-9956-ffa450edef68
2009-04-03 03:09:53 +00:00
Patrick Linskey 318d408ab7 fixed spacing issue with some localization messages that wrap. This pushes some lines to 81 characters; we could re-wrap these lines if needed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761417 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 20:26:09 +00:00
Milosz Tylenda 0aedae4370 OPENJPA-883: Documentation is out of date for some MySQLDictionary properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761373 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 18:45:32 +00:00
Fay Wang f21f7b5ae5 OPENJPA-1004: fix problems with IdClass which has a derived identity and the relation corresponding to the derived identity uses generatedKey
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761326 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 15:38:34 +00:00
Catalina Wei 33ed6bfb7f JPA2 Query support for embeddables; nested embeddables; relationships from embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761031 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 19:53:54 +00:00
Michael Dick 80be256e13 OPENJPA-975 committing patch from B.J. Reed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@760914 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 15:15:42 +00:00
Jeremy Bauer a5e3bdd592 OPENJPA-990 Committing code and test updates contributed by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@760056 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 17:21:57 +00:00
Catalina Wei 7e6ca9043e OPENJPA-956 support elementCollection in FROM clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758868 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 21:36:08 +00:00
Pinaki Poddar 32796f751b OPENJPA-5: Upgrade to JDK6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758490 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 01:01:39 +00:00
Fay Wang 66f829f7eb OPENJPA-999: add eol to localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758366 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 17:51:51 +00:00
Fay Wang fac1cf7614 OPENJPA-999: put back sql-warning message to Localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758364 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 17:46:30 +00:00
Fay Wang 31ae580252 OPENJPA-973: allow DB2 jcc driver to access Informix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757512 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 19:19:24 +00:00
Michael Dick b546423063 OPENJPA-896. Setting eol-style:native and removing windows eol characters from XML files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757388 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 12:42:41 +00:00
Michael Dick 90b84c5d73 OPENJPA-896. Setting eol-style:native and removing windows eol characters from source files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757278 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 23:37:24 +00:00
Albert Lee 7ad6a01e84 OPENJPA-992 - Correct proper DB2 SQLState to EntityExistsException translation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756238 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 22:27:45 +00:00
Fay Wang 9e683c7612 OPENJPA-963: commit patch provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756193 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 20:54:28 +00:00
Catalina Wei 6f253f050b OPENJPA-967 JPA2 add support for collection valued path thru KEY appear in FROM clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756104 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 17:33:03 +00:00
Albert Lee ca00078072 OPENJPA-988 - Refactoring JPA2/MixedLockManager from persistence module to jdbc module. No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756066 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 16:03:15 +00:00
Fay Wang b00ef73b40 OPENJPA-973: allow db2 jcc driver to access Informix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756045 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 15:32:33 +00:00
Albert Lee 944ee1607b OPENJPA-878 - per agreement with Donald, removing un-needed code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756010 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 14:09:15 +00:00
Pinaki Poddar c5c5398497 OPENJPA-985: Support dynamic addition of slices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755861 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 07:10:53 +00:00
Jeremy Bauer 05c5ad096b OPENJPA-878 Committing code and test updates contributed by Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755819 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 02:54:39 +00:00
Michael Dick ff8d46578c OPENJPA-970. Committing patch provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755396 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 21:04:37 +00:00
Jeremy Bauer 390f390b29 OPENJPA-878 Committing code, tests, and documentation updates for Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755113 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 04:39:56 +00:00
Catalina Wei 7c9ef84fb9 OPENJPA-967 JPA2 JPQL allow KEY(e) of basic types appear in conditional expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755102 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 03:13:10 +00:00
Catalina Wei 29a2d30a8a OPENJPA-967 JPA2 support qualified path
add support for ORDER BY & GROUP BY a path thru KEY navigation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@754961 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 17:16:39 +00:00
Fay Wang 44ffbd2f79 OPENJPA-967: remove duplicate column in the associate
table when MapKey is specified.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@754773 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 22:04:03 +00:00
Catalina Wei d8da810820 OPENJPA-967 JPA2 Query support for selection of state field thru KEY navigation
Sample JPQL: select KEY(e).name from Dept d join d.emps e

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@753473 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 23:20:45 +00:00
Albert Lee 0e7c84ef81 OPENJPA-866 - Commit contributions by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@753024 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 21:31:11 +00:00
Albert Lee 6e6cb3786c OPENJPA-891 - Complete new LockModeType supports in EntityManager. Manual updated. Build and TCK passed. Code reviewed by Pinaki P. and Mike D.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752306 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 23:41:03 +00:00
Fay Wang c67cd5d0be OPENJPA-973: allow db2jcc driver to work with informix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752304 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 23:33:45 +00:00
Albert Lee dfe19d2f4f OPENJPA-891 - remove unneeded code. Code review changes per Pinaki's comment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752193 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 17:58:08 +00:00
Fay Wang ab9d17f12e OPENJPA-679: fix ReverseMappingTool problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752178 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 17:37:57 +00:00
Pinaki Poddar 4506244327 OPENJPA-958,959: timeout on query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 07:22:23 +00:00
Fay Wang 1ece64d1df OPENJPA-965: Open up FinderQueryImpl for jdbc-like and non-jdbc
implementation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751775 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 17:41:58 +00:00
Catalina Wei de5e6c9ba9 OPENJPA-967 JPA2 Query support for selection of KEY, VALUE, ENTRY of a Map value
more test scenarios for Map having @MapKeyClass or @MapKeyJoinColumn annotations

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751766 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 17:08:34 +00:00
Pinaki Poddar 23b0b87674 OPENJPA-966: Support MySQL Replication Driver
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751487 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 18:11:55 +00:00
Catalina Wei dab2ec2ead Open up FinderCacheImpl for non-JDBC or JDBC-like implementation of preparing statement/query execution
cleanup imports

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751330 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 22:09:17 +00:00
Catalina Wei b45109cec3 OPENJPA-965 Open up FinderCacheImpl for non-JDBC or JDBC-like implementation of preparing statement/query execution
An approache not exposing FinderCacheImpl to jdbc kernel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751301 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 17:49:31 +00:00
Fay Wang b612d64620 OPENJPA-965: Open up FinderCacheImpl for jdbc and non-jdbc
like implementation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751148 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 00:40:53 +00:00
Albert Lee 70cfcaaee1 OPENJPA-891 - Remove _recoverable attribute in StoreException and use _fatal instead, per Pinaki's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751109 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 22:22:15 +00:00
Pinaki Poddar cae33419ae OPENJPA-955: test+documentation on MethodQL. Allow candidate class be optional on MethodQL. Do not cache MethodQLQuery.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750798 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 07:50:54 +00:00
Catalina Wei 30ee661fdc OPENJPA-879 JPA2 Query support for selecting KEY, ENTRY and VALUE of a Map value
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750517 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 17:30:20 +00:00
Albert Lee 781c837812 OPENJPA-903 - Commit contribution submitted by Tim McConnell. [Ref: http://archives.postgresql.org/pgsql-jdbc/2008-01/msg00089.php]
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749423 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 19:32:14 +00:00
Michael Dick f3d1704863 OPENJPA-213. Scale and precision specified for doubles upgrade column type to NUMERIC.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749090 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 20:38:21 +00:00
Michael Dick efc6ba4735 OPENJPA-884: Logging oversight in DB2Dictionary
https://issues.apache.org/jira/browse/OPENJPA-884

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749077 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 19:31:06 +00:00
Albert Lee cc38e27eef OPENJPA-891 - change supportIsolationForUpdate to supportsIsolationForUpdate in line with existing naming convention.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748957 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 03:27:37 +00:00
Pinaki Poddar e11b753da5 OPENJPA-924: Add localized statements for logging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748625 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 18:12:20 +00:00
Fay Wang b811a6c43b OPENJPA-931: IdClass support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748349 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 23:35:54 +00:00
Pinaki Poddar bf16127d19 OPENJPA-924: Only cache finder queries without read locks
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748126 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:04:01 +00:00
Albert Lee 22a0f837e1 OPENJPA-891 - Committing basic JPA2 lock mode support for em refresh, find and lock methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747489 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 18:48:09 +00:00
Pinaki Poddar 9d7360cb35 OPENJPA-935: Detect table for embedded PC to avoid extra select before delete.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746640 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 05:52:06 +00:00
Fay Wang e2fef6a276 OPENJPA-930: AttributeOverride support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746630 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 04:11:32 +00:00
Fay Wang f72b68bfbb OPENJPA-931: nested embeddedId/MappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746446 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 07:29:40 +00:00
Pinaki Poddar cfd133447f OPENJPA-924: Set JDBC query parameters with type information
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746060 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 23:58:42 +00:00
Albert Lee 679989fd16 OPENJPA-466 - Commit patch contributed by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745737 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 05:34:30 +00:00
Fay Wang 357cf347c8 OPENJPA-871: mappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745699 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 00:30:06 +00:00
Catalina Wei d1c23c2d9d OPENJPA-925 Bidirectional OneToOne relation incorrectly set in loadEagerJoin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745408 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 08:06:12 +00:00
Pinaki Poddar f08e4e1791 OPENJPA-924: Cache primary key field indices. Simplify QueryStatistics template.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745329 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 00:49:51 +00:00
Pinaki Poddar 3fc7f54a01 OPENJPA-924: Support cache of Finder queries.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745293 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 23:21:37 +00:00
Pinaki Poddar 556e09b69f OPENJPA-703: Use template for QueryStatistics.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745123 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 15:41:28 +00:00
Pinaki Poddar 2582d4de0b OPENJPA-703: Clean up unused varaibles in PreparedQueryCache implementaion and remove support for Class based keys kep as placeholder for finder queries.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@744966 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 17:00:07 +00:00
Fay Wang 1b7ff075c9 OPENJPA-871: MappedById support (spec 2.4.1.2 Ex3b, 5b)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743437 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 18:19:13 +00:00
Pinaki Poddar 8a9595bed4 OPENJPA-900: Consolidate Query Hint related processing. As a byproduct, support new JPA 2.0 getHins() and getSupportedHints().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743396 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 16:57:26 +00:00
Pinaki Poddar 0916d4b109 OPENJPA-703: Align data loading for Prepared Query Results to Select oriented result object provider
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742601 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 16:29:37 +00:00
Catalina Wei 80aea14f18 OPENJPA-912 Potential NPE in setInverseRelation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741994 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 01:43:45 +00:00
Fay Wang e2aea2d05a OPENJPA-871: MappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741595 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 15:34:53 +00:00
Catalina Wei 9f0a175b8d OPENJPA-703 make substituteParams() utility method public
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741347 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 23:53:25 +00:00
Pinaki Poddar 889ca9d6a4 OPENJPA-703: Update Prepared Query Cache documentation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741275 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 20:06:02 +00:00
Pinaki Poddar b7ca8734b9 OPENJPA-703: Parse SQL for both ?n and ? style parameter markers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740208 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 04:13:51 +00:00
Pinaki Poddar c71522fa9a OPENJPA-703:How user parameters are converted to Object[] is determined by the Executors. Because they are the consumer of this information. kernel.Query toParameterArray() was making many implict assumptions. A detailed test with paramenetrs and forcing PreparedQueryCacheImpl to cache JPQL only.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740184 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 01:41:25 +00:00
Pinaki Poddar 64329e007e OPENJPA-703: Support Collection-valued parameters. Handle re-parameterization when collection-valued parameter has different size across invocations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740016 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 15:57:27 +00:00
Pinaki Poddar 2065e905dd OPENJPA-703: Use Prepared Query for packed results.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739796 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 17:34:04 +00:00
Pinaki Poddar 4ed05803e1 OPENJPA-703: A separate executor for Prepared SQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739784 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 16:50:45 +00:00
Pinaki Poddar e30261e55a OPENJPA-703: Support PersistenceCapable as query parameter during reparameterization of Prepared Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739589 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 19:37:01 +00:00
Pinaki Poddar 1ddbd61042 OPENJPA-703: Cleaning first Prepared Query Cache commit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739425 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 22:06:30 +00:00
Fay Wang 6453c64343 OPENJPA-870: orphanRemoval support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739155 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 03:15:09 +00:00
Pinaki Poddar 295442d82f OPENJPA-703: Prepared Query Cache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739123 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:27:35 +00:00
Catalina Wei 8e60655cd7 OPENJPA-865 JPA2 Query support for collection-valued input parameter in in-expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738940 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 17:51:35 +00:00
Fay Wang f65c4aebcd OPENJPA-870: orphanRemoval support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738933 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 17:35:45 +00:00
Fay Wang 209f903388 OPENJPA-851: fix a bug in the embeddable processing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@737164 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:48:10 +00:00
Jeremy Bauer 017e518bba OPENJPA-802 Base OrderColumn support and corresponding tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736915 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 04:54:33 +00:00
Catalina Wei d49fdb1ea2 OPENJPA-856 JPQ2 JPQL add support for entity type expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736881 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 01:19:47 +00:00
Michael Dick c5736acdf4 OPENJPA-864 do not remove table aliases for databases which use JoinSyntaxes.SYNTAX_DATABASE (no joins).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736748 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 19:16:37 +00:00
Fay Wang c21184bf11 OPENJPA-851: ManyToMany Map support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736245 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 06:50:16 +00:00
Fay Wang 88f288b47a OPENJPA-851: enhanced bi-directional map support in
update operation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734617 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 07:05:13 +00:00
Catalina Wei 388c56f05f OPENJPA-846 XML column support for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734601 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 03:11:00 +00:00
Fay Wang c99c9d24f9 OPENJPA-851: enhanced map support for JPA 2.0 (Spec 10.1.26,
10.1.27, 10.1.28, 10.1.29, 10.1.30, 2.7)

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734319 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 04:11:32 +00:00
Michael Dick 500fc71ba3 OPENJPA-843 move testcases to openjpa-persistence-jdbc module to resolve compile failure
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733970 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 23:56:33 +00:00
Catalina Wei 9ab2dd6c4a OPENJPA-843 Unnecessary version update on inverse-side of a 1-m relationship
Committing patch provided by Dinkar Rao

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733932 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 22:16:06 +00:00
Catalina Wei 2309a59df5 OPENJPA-853 Informix Cursor not open problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733204 13f79535-47bb-0310-9956-ffa450edef68
2009-01-10 00:44:36 +00:00
Catalina Wei 4427455757 OPENJPA-855 JPA2 Query updates add support for Index function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733142 13f79535-47bb-0310-9956-ffa450edef68
2009-01-09 20:13:20 +00:00
Pinaki Poddar f30eb24709 remove unused import statement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732084 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 19:56:20 +00:00
Catalina Wei fb7ab1908b OPENJPA-557 Primary key sequences broken with postgres schemas
Commit patch provided by Milosz Tylenda

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729180 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 00:18:32 +00:00
Catalina Wei 1437517d8c OPENJPA-833 An improved test case for XML column mapping
Commit patch provided by Milosz Tylenda

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729169 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 23:21:11 +00:00
Pinaki Poddar 94efd58dd9 OPENJPA-845: Evaluate ordering value for PCPath to support ORDER BY slice queries that involves ordering terms not included in projection items and hence requires in-memory ordering from multiple slices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 20:08:39 +00:00
Fay Wang 6ff7d9a922 OPENJPA-838: remove cache from StoreCollectionFieldStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728750 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 19:36:50 +00:00
Jeremy Bauer c924cc2fc8 OPENJPA-803 Added support to allow a specific schema name to be specified on sequence generators per JPA 2.0.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728147 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 21:22:18 +00:00
Michael Dick 16b7b1a7f7 OPENJPA-784 committing patch provided by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728004 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 11:36:13 +00:00
Catalina Wei 0500645b7a OPENJPA-835 Loading nested toMany EAGER relation resuled in PersistenceException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727895 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 02:17:36 +00:00
Pinaki Poddar 574d559860 OPENJPA-825: Introduced internal locking for shared contexts (BrokerImpl/QueryImpl).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727864 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 00:08:23 +00:00
Pinaki Poddar 0f7f03d8b0 OPENJPA-825: Cache unique flag for query to avoid lcoking. Use StateManager's instance lock rather than acquiring Broker's lock.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727297 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 06:23:00 +00:00
Fay Wang 4cf216c21f OPENJPA-782: embeddable support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 16:44:26 +00:00
Catalina Wei debe82b8d0 OPENJPA-805 JPQL iteration 1 - add support for COALESCE and NULLIF expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725881 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 01:29:19 +00:00
Jeremy Bauer cabd344397 OPENJPA-800 remove version milestone indicator from build artifacts
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725817 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 21:17:55 +00:00
Catalina Wei 979a6e373c OPENJPA-805 JPQL iteration 1: add support for Case Expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725728 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 16:16:32 +00:00
Catalina Wei 2bb40626e6 OPENJPA-805 JPQL iteration 1 add support for select ScalarExpression & Order By selectAlias
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725530 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 01:43:52 +00:00