Donald Woods
e991772527
make sure tests cleanup EMs and EMFs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021839 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 17:02:53 +00:00
Pinaki Poddar
f56c4ca729
OPENJPA-1776,OPENJPA-1777: Delay distribution decision to flush. Set diagonistic context by reflection.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@990238 13f79535-47bb-0310-9956-ffa450edef68
2010-08-27 19:33:37 +00:00
Michael Dick
e449027abe
Increase timeout value for slice testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@985067 13f79535-47bb-0310-9956-ffa450edef68
2010-08-13 02:03:48 +00:00
Richard G. Curtis
b2d771f972
Adding missing licence header.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@946248 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:03:11 +00:00
Pinaki Poddar
f4cddb4c82
Remove Compilation error because to @Override flag.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@943897 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 14:25:36 +00:00
Pinaki Poddar
3bb50e3d36
OPENJPA-1663,OPENJPA-1664: Add support to target find() or query to a subset of slices with plug-in policy. The existing, code intrusive mechanism of setting hints on query/fetch plan explicitly is retained. Intrusive, explicit setting of targets overrides policy based targets.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@943688 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 21:08:34 +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
Pinaki Poddar
990bfb8d96
OPENJPA-1649: Add a test to verify transaction atomicity across slices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@941541 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 23:28:26 +00:00
Pinaki Poddar
4c24a47a8e
OPENJPA-1649: Share metadata/mapping repository across slices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@941515 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 22:11:51 +00:00
Pinaki Poddar
c7addd5f51
OPENJPA-1648,OPENJPA-1649,OPENJPA-1650: Replace fixed thread pools by cached thread pool.
...
Stop creating thread pools on every flush/query.
Streamline property parsing/processing to create slice configurations.
Retain addSlice() on Persistence Unit and remove from Persistence Context and Configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@941084 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 23:01:51 +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
Michael Dick
c618b4692d
OPENJPA-1557:
...
Use openjpa.Log to control build logging instead of openjpa.loglevel
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923929 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 18:44:11 +00:00
Pinaki Poddar
a8640cc5d2
OPENJPA-1285: Dynamic JDBC 4 Wrappers use constructor to save reflection cost
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813149 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 22:43:49 +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
Michael Dick
3ec9136da7
OPENJPA-651:
...
Default setting for RuntimeUnenhancedClasses = unsupported.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802457 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 21:03:56 +00:00
Michael Dick
3464d8e9b8
OPENJPA-1015. Enforce column width for testcases
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779361 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 00:22:33 +00:00
Michael Dick
291e27eba9
OPENJPA-1015. Committing patch provided by BJ Reed. Additional testcases have been added which do not conform - I've updated some of them but some still exist so validation is not enabled by default
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777135 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 14:39:31 +00:00
Pinaki Poddar
83bb518d7c
OPENJPA-1079: Allow connection to be accessed by the client
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773249 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 16:40:59 +00:00
Pinaki Poddar
eb359de6a5
Demonstrates that related instances can be stored across slices (i.e. collocation constrain can be bypassed) and the across-slice relations can be fetched reliably under certain restrictions (e.g. for lazy relations).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772721 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 17:36:05 +00:00
Pinaki Poddar
27935272ba
OPENJPA-1044: Retire test where entity is used as a query parameter as it causes a thread deadlock
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767571 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 15:39:09 +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
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
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
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
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
Michael Dick
1d94611932
OPENJPA-947. Reduce testcase logging
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755580 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 12:37:31 +00:00
Pinaki Poddar
6b40e72683
OPENJPA-981: replicate parent-child relation across slices and not only to root slice
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755031 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 22:36:50 +00:00
Pinaki Poddar
393111b875
OPENJPA-857: PersistenceProductDerivation sets Compatibility according to current specification. Allow multiple specifications to coexist.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752557 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 18:38:35 +00:00
Fay Wang
c3338d82ba
OPENJPA-937: remove AllowFailure from the test case, as this
...
causes compiler error in mvn clean install, since the dependency
on org.apache.openjpa.persistence.test.AllowFailure is missing
in the pom file for openjpa-slice.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750218 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 23:06:56 +00:00
Fay Wang
0098cc1e25
OPENJPA-937: AssociationOverrides support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750122 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 19:42:51 +00:00
Pinaki Poddar
4d28f28b20
OPENJPA-825: ExecutorService is not configurable anymore with new threading strategy.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748308 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 21:17:13 +00:00
Pinaki Poddar
75cf4c522f
OPENJPA-825: A new threading policy for Slice via extension
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748292 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 20:20:44 +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
ba62ff1aa3
OPENJPA-916: DistributedTemplate not setting MaxRows and QueryTimeOut correctly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742740 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 21:19:32 +00:00
Pinaki Poddar
43a9847b93
Remove unnecessary imports
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729331 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 16:24:53 +00:00
Pinaki Poddar
2759792aea
Timeout multithreaded tests if they hang
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729134 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 21:49:49 +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
Pinaki Poddar
3f90c7eaa8
Handle version adjustment when replicated instances are flushed to multiple slices. Refactor untyped OpenJPAStateManager collections to save some redundant iteration.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728807 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 22:11:48 +00:00
Pinaki Poddar
ec531f3b9d
OPENJPA-841: Add structure to hold Slice information. Also ensure that replicated instances carry all replicated slice information even when they are found in a single slice.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728761 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 20:22:52 +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
Pinaki Poddar
9c8b2d2cd8
OPENJPA-825: Execute slice operations serailly when openjpa.Multithreaded=true. Otherwise continue using parallel execution mode.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726770 13f79535-47bb-0310-9956-ffa450edef68
2008-12-15 19:02:19 +00:00
Pinaki Poddar
66434c6ebf
OPENJPA-820: Test entity reference can be used as query parameter for slices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725078 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 13:03:08 +00:00
Pinaki Poddar
57d329d3c5
OPENJPA-821: DistributedStoreQuery$UpdateExecutor called executeDelete(). Should be executeUpdate()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725070 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 12:36:24 +00:00
Pinaki Poddar
62e1deae8f
OPENJPA-801: PCPath is now a CandidatePath. But why was it not before?
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724856 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 20:08:32 +00:00
Pinaki Poddar
5bf35c3a40
OPENJPA-812: Consider case when aggreate result from a slice can be null
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723260 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 09:09:35 +00:00
Pinaki Poddar
3f47c13c68
OPENJPA-787,OPENJPA-799: getSingleResult() and multiple aggregate projections
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@722059 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 12:34:17 +00:00
Michael Dick
e23ea92319
Organize imports for DistributedStoreManager to avoid protection problem with sun.reflect.ReflectionFactory
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706841 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 01:29:16 +00:00
Pinaki Poddar
16e7a11f81
document ReplicationPolicy for Slice. Also assorted doc edit
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@705487 13f79535-47bb-0310-9956-ffa450edef68
2008-10-17 06:21:49 +00:00