Patrick Linskey
4fb39b9590
Example of how to do dynamic class registration in OpenJPA.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596954 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 06:25:29 +00:00
Patrick Linskey
aa5259d521
OPENJPA-446: preemptively adding ASL license header on the assumption that the contributor will allow us to license these files.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596795 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 19:37:02 +00:00
Michael Dick
e1dccc1872
OPENJPA-446
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596731 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 16:17:57 +00:00
Patrick Linskey
4c2efed65b
OPENJPA-447 -- improved test case
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596661 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 13:46:03 +00:00
Patrick Linskey
0346483ada
Trivial whitespace change to test build-triggering filters
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595916 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 07:01:40 +00:00
Patrick Linskey
da9c4ba721
Removing disabled test case
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595915 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 06:49:40 +00:00
Patrick Linskey
f875a5e98b
OPENJPA-200
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595912 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 06:38:33 +00:00
Patrick Linskey
74683912e3
New test case for enums and JPQL (including some disabled failing tests related to OPENJPA-200); simplification to JDBCStoreManager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595910 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 05:28:58 +00:00
Patrick Linskey
6f44b55736
OPENJPA-316
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595512 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 01:19:14 +00:00
Patrick Linskey
0071f7b0d8
OPENJPA-316
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595510 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 01:09:26 +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
2895819d40
OPENJPA-417. Removed obsolete test support class.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592964 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 00:09:55 +00:00
Patrick Linskey
17a93adda5
OPENJPA-417. Added support for containers of primitives, embeddeds, externalizables, etc.
...
This does not include test cases for the following annotations:
KeyClassCriteria
KeyColumns (KeyColumn is tested, and follows similar pathways)
KeyEmbeddedMapping
KeyJoinColumns (KeyJoinColumn is tested, and follows similar pathways)
KeyStrategy
ElementColumns (ElementColumn is tested, and follows similar pathways)
ElementEmbeddedMapping
ElementStrategy
XEmbeddedMapping
XMappingOverrides (XMappingOverride is tested, and follows similar pathways)
This change presents a backward-compat issue for OpenJPA: in the past, a Collection<String> or Map<String,String> would be mapped as a BLOB by specifying @PersistentMap or @PersistentCollection on the field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592917 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 21:46:09 +00:00
Patrick Linskey
a710a30b54
Additional test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592557 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 21:26:40 +00:00
Patrick Linskey
af4ea13a2c
OPENJPA-430 -- strip hungarian notation prefixes. Checking in patch for Ben Short, along with minor whitespace reformatting and a small tweak to reduce computation if branch logic in correctName() will not use the calculated name.
...
The initial patch included a test for fields that would end up having duplicate names after truncation. The code, however, does not do anything to resolve / avoid duplicates. To make it work, we would need to change MappingDefaultsImpl.correctName() to take a ValueMapping as an argument, and do a two-pass algorithm to check for other fields that would turn into duplicates. Even doing this will not be foolproof, as a duplicate column might come from a subclass or an embedded class. Since this option is not enabled by default anyways, and the duplicate error would become evident during testing / schema creation, I do not believe that it would be worthwhile to spend much time addressing this.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592319 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 07:36:55 +00:00
Kevin W. Sutter
e5556e0fe5
OPENJPA-370. Backing out the changes for the LoadFetchGroup implementation. We need to re-think the implementation (both the real and the expected). I left the test Entities in SVN, but removed the testcase so that we wouldn't fail the builds.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@591176 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 00:36:54 +00:00
Pinaki Poddar
18cc4b932f
Added to count SQL issued. Current sql list size is not used so that user can reset the counter without destroying the list of SQL.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@591135 13f79535-47bb-0310-9956-ffa450edef68
2007-11-01 19:36:55 +00:00
Patrick Linskey
830cc35014
Additional test cases for JPA annotations; commented-out test for OPENJPA-425.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590529 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 01:27:23 +00:00
Patrick Linskey
c3ba59f3e7
removed accidentally-added test case
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590485 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:54:31 +00:00
Patrick Linskey
9776c5bdfe
Fixed test case that depended on new error message.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590484 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:52:47 +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
e487d35da6
OPENJPA-419
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588533 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 05:39:48 +00:00
Michael Dick
9e5cc06fcb
OPENJPA-416
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587943 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 18:09:01 +00:00
Michael Dick
cb2a061dc7
OPENJPA-113 with testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587775 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:17:59 +00:00
Marc Prud'hommeaux
61c789dbaf
OPENJPA-322 reverted change #567170 to restore previous behavior of TimeZones in Calendar fields; added test case to confirm that the Calendar fields behave as expected
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@586649 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 00:49:37 +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
Patrick Linskey
09c894a368
OPENJPA-403. Assuming that ignoring the new code is sufficient in cases where the fetch configuration is unavailable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584972 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 23:21:30 +00:00
Patrick Linskey
7eabf992bb
removed empty file. In addition to being empty, this was causing rat to fail.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584891 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 20:16:41 +00:00
Michael Dick
2d6fbb5d13
OPENJPA-399 Committing Teresa's patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584354 13f79535-47bb-0310-9956-ffa450edef68
2007-10-13 00:51:54 +00:00
Michael Dick
151cf2d034
OPENJPA-399 committing Teresa's patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584330 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 23:42:34 +00:00
Patrick Linskey
22e5530d0c
OPENJPA-392
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581933 13f79535-47bb-0310-9956-ffa450edef68
2007-10-04 14:44:37 +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
Kevin W. Sutter
60062e27a2
OPENJPA-370. Committing Teresa's patch with a few minor updates (per my JIRA Issue remarks).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581039 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 19:08:19 +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
Michael Dick
12840cafbf
OPENJPA-382
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@578867 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 16:14:12 +00:00
Michael Dick
89b030c3d1
OPENJPA-380
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@578260 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 20:38:31 +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
Patrick Linskey
809cb37003
OPENJPA-335. 'svn merge -c 575492 ../branches/1.0.x'
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575495 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 23:24:12 +00:00
Kevin W. Sutter
efc6e371b7
OPENJPA-360. Remove code dependencies on DB2 libraries from unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575008 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 16:45:59 +00:00
Catalina Wei
a4bf964c08
OPENJPA-360 SQL FOR UPDATE OF incorrectly generated for DB2 UDB version8.1 or earlier and DB2 ISeries V5R3 or earlier.
...
These DB2 version also require the "optimize for <n> row" clause appear before FOR UPDATE clause.
Due to this requirement, the OPTIMIZE clause will appear before FOR UPDATE clause for all DB2 versions.
Also fixed the affected testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574464 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 05:32:37 +00:00
Patrick Linskey
d022b18ad5
OPENJPA-130. Committing Ignacio's patch, with a few whitespace and method name tweaks.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574143 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 06:11:29 +00:00
Michael Dick
caa4b76fe2
OPENJPA-353
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573398 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 22:16:10 +00:00
Patrick Linskey
a3b0778071
Improve error messages when processing metadata / JPQL queries.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@572492 13f79535-47bb-0310-9956-ffa450edef68
2007-09-04 02:05:15 +00:00
Kevin W. Sutter
5affd1274f
OPENJPA-347. This change brings the performance back to the expected levels. I have also updated the "BidiSQL" testcase to ensure that regressions like this get caught during normal testing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571461 13f79535-47bb-0310-9956-ffa450edef68
2007-08-31 13:42:29 +00:00
Pinaki Poddar
44db5768cd
Allow dynamic configuration property. Changes include
...
1. Add getter/setter for boolean 'dynamic' field of Value
2. Add Value.assertChangeable() that Value subclasses must invoke prior to set
new internal state
3. Changes Configuration readOnly state from a boolean to a simple 3-step state
variable INIT_STATE_LIQUID/FREEZING/FROZEN. This is done to allow lazy
instantiation of some PluginValues after the BrokerFactory freezes configuration.
4. Removes assertNotReadOnly() check from Configuration implementations' setX()
methods.
5. Removes dynamic Value related methods from Configuration API and its
implementations
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571294 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:19:44 +00:00
Patrick Linskey
3a78ec68ac
updated site index with some links and more content; changed pom definitions to put docs into the uploaded builds
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571259 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 18:01:10 +00:00
Patrick Linskey
cbe8908430
OPENJPA-344. Moved temporary files into the target dir.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571210 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 15:33:13 +00:00
Patrick Linskey
e89b51c4c6
OPENJPA-344. Enable serialization of metadata and query compilation caches. This implementation requires that the user run a tool to build the cache, and set a configuration property to tell OpenJPA where the serialized data is stored.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570948 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 22:07:44 +00:00
Marc Prud'hommeaux
614c53df58
Merging changes from 1.0.x branch into trunk (from branch point 567935:HEAD)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570908 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 19:37:59 +00:00
Marc Prud'hommeaux
c70bee2898
Changed trunk version to be 1.1.0-SNAPSHOT (was 1.0.0-SNAPSHOT)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570465 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 16:03:23 +00:00
Patrick Linskey
99029c0bda
Make derived setUp() methods public so that they will get invoked by junit.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570279 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 00:32:06 +00:00
Patrick Linskey
99730c3a5a
Make SingleEMFTetsCase.setUp() public so that it'll get invoked by junit.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570278 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 00:30:13 +00:00
Michael Dick
92d78bc296
Pass along openjpa.loglevel to enhancer and remove hard coded trace spec from a testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@569713 13f79535-47bb-0310-9956-ffa450edef68
2007-08-25 17:56:59 +00:00
Michael Dick
ee05926f19
Setting heap size for tests in trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@568622 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 14:21:42 +00:00
Michael Dick
071a9abbbb
OPENJPA-326 Initialize discType
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@568403 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 04:01:07 +00:00
Patrick Linskey
56f6b43790
OPENJPA-317. Some more API Javadoc cleanup, plus a bit of last-minute renaming and method visibility changes for clarity.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 07:03:48 +00:00
Patrick Linskey
ebcec6e55b
OPENJPA-317. Moved away from requiring Type at the end of enums, in favor of alignment with existing OpenJPA config settings.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567900 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:37:39 +00:00
Patrick Linskey
e26e15496e
OPENJPA-317. Added ResultSetType and FetchDirection enums. Used FetchDirection instead of FetchDirectionType because FetchDirection seemed much more natural.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567893 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:09:20 +00:00
Patrick Linskey
ede9dcbd61
OPENJPA-293. More-eager failures.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567889 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 00:54:44 +00:00
Patrick Linskey
dda1e8ef6f
OPENJPA-293. Allow runtime redefinition to be disabled via a configuration setting. We really should sweep through the code and change ImplHelper to take a Configuration as an argument, but that won't change the behavior; it'll just make some of the validations more eager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567886 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 00:45:23 +00:00
Patrick Linskey
8dd6857f67
OPENJPA-314, OPENJPA-315
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567875 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 23:19:05 +00:00
Patrick Linskey
6de7e5f581
Imports cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567856 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:24:03 +00:00
Patrick Linskey
007154980b
OPENJPA-317. Removed comment; added exception to test case method definition for extensibility
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567851 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:08:40 +00:00
Patrick Linskey
778ab2a393
OPENJPA-317. Changed OpenJPA published API pre-1.0. Reduced the scope of the dependencies in OpenJPAEntityManager and the other published interfaces; converted JDK1.4-style symbolic constant usage to new enums; changed some method names for clarity and consistency; removed old javax.resource dependencies; updated @published and @nojavadoc tags. The published interfaces should now only reference other published interfaces in method signatures, and it should be possible to build javadoc for just the published interfaces.
...
Removed getDelegate() calls from the published interfaces, as they expose internals. They are still available on the impl classes themselves, or the SPI ifaces when available.
Added covariant return types to JDBCFetchPlan.
Changed BrokerFactoryListener interface to not encode event types in the listener signature.
Moved some methods from OpenJPAPersistence to JPAFacadeHelper.
We will need to grow these published interfaces to provide access to some things in the internal interfaces. However, these interfaces will remain stable moving forward within the constraints of the OpenJPA deprecation policies.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567838 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 21:32:54 +00:00
Michael Dick
6cd259f310
OPENJPA-143
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566788 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 17:59:57 +00:00
Pinaki Poddar
8d1dacad82
Adding support for change of configuration properties after the configuration has been frozen.
...
Three methods have been added to Configuration:
i) Configuration.getDynamicValues() returns list of Values that are dynamically modifiable.
ii) Configuration.isDynamic(String property) affirms if the named property is dynamically modifiable.
iii) Configuration.modifyDynamic(String property, Object value) modifies the named property value even when Configuration.isReadOnly().
Currently, OpenJPAConfigurationImpl.getDynamicValues() return 3 simple IntValue properties {dataCacheTimeout, fetchBatchSize, lockTimeout)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566494 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 05:52:17 +00:00
Marc Prud'hommeaux
ecc36a0f37
Build system work in preparation for 1.0.0 release; fixed some missing license headers; added maven ARAT plugin
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565955 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 22:39:55 +00:00
Kevin W. Sutter
5c9642d5f4
OPENJPA-244. Committing Albert's changes for Java 2 Security (minus the white space).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564408 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 22:27:17 +00:00
Patrick Linskey
63c3748900
OPENJPA-165
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563702 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:47:19 +00:00
Patrick Linskey
86e47000db
OPENJPA-86
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563697 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:12:56 +00:00
Patrick Linskey
d260d34d69
Oops; fixing NPE caused by previous short-circuiting.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563664 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:32:06 +00:00
Patrick Linskey
fa39addf82
Prevent this class from attempting to build its schema when using a database that doesn't support XML datatypes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563661 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:16:55 +00:00
Kevin W. Sutter
9382677eb1
OPENJPA-272. Committing the changes to allow @GeneratedValue to detect and report if initial values and/or setters were called on fields marked with @GeneratedValue. New testcases were also provided.
...
Also had to update an existing testcase (TestSharedMappedSuperclassIdValue) and associated Entities because it was breaking the contract put in place.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562987 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:34:06 +00:00
Kevin W. Sutter
c34fb4e80e
OPENJPA-281. Committing the patch that I posted earlier this week. These changes do the proper eager loading of @Basic types. Along with a new testcase and updated AllFieldTypes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:30:08 +00:00
Kevin W. Sutter
890d16047e
Just a couple of new testcases that I used to debug some problems recently. Turned out to be non-issues, but I thought the testcases still might be worthwhile to have in our bucket.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562985 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:20:10 +00:00
Michael Dick
a8fc8dfa76
OPENJPA-295 improved testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562244 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 20:33:18 +00:00
Marc Prud'hommeaux
17ecf6753a
Fixed test case to first check to see if any CREATE TABLE statement was issued at all. If not, then the database might already have created the TemporalFieldTypes table, in which case the validation assertions of the temporal column types will fail.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562206 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 17:58:37 +00:00
Michael Dick
a1d28857fa
OPENJPA-303 committing on behalf of Albert
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561405 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 17:32:01 +00:00
David J. Wisneski
7ca46cf69d
OPENJPA-240 XMLMapping Query - refactoring JAXB XML annotaion parser
...
Help Catalina committing OPENJPA-240.r560665.patch for refactoring JAXB XML annotation parser.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561376 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 16:19:24 +00:00
Patrick Linskey
0243702b35
OPENJPA-293. Fixed problem with transactional state maintenance that was preventing lifecycle tests from passing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560601 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 19:53:13 +00:00
Patrick Linskey
8c1710ed63
OPENJPA-297
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560304 13f79535-47bb-0310-9956-ffa450edef68
2007-07-27 16:26:52 +00:00
Patrick Linskey
747226b1d6
OPENJPA-293. All tests pass, but only because we don't currently test Java 5 + redefinition (only Java 5 + no redef). We need a new version of serp (1.13.1) to support that configuration; the new version has not yet made it into ibiblio.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560016 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 22:08:37 +00:00
Patrick Linskey
3ddd88b576
Removed unneeded imports.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559521 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:49:44 +00:00
Patrick Linskey
dbf7ab273e
Simple test case for lifecycle listener support.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559515 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:30:59 +00:00
Patrick Linskey
b50530274b
Simple test case for in-memory remote commit provider.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559503 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:04:27 +00:00
Patrick Linskey
092729c11c
Test case for selecting enum values into a new managed instance.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559353 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 08:32:38 +00:00
Michael Dick
19dc613dd0
Reset sequencetable for TestTableGenerator
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558815 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 18:03:04 +00:00
David J. Wisneski
a5ed9f701d
OPENJPA-240 XMLMapping Query support, fix eol delimiters to unix style
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558221 13f79535-47bb-0310-9956-ffa450edef68
2007-07-21 01:25:48 +00:00
Patrick Linskey
e2556dd6b2
Test that @ContainerTable annotation is properly read.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558191 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 23:03:21 +00:00
Patrick Linskey
9ce0bed09d
Test that externalization of EnumSets works as expected.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558186 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 22:42:16 +00:00
Michael Dick
a5d1acd44e
OPENJPA-284 committing on behalf of Teresa
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558097 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 19:17:19 +00:00
Michael Dick
1c9f0ae0ae
OPENJPA-287
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557768 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 20:55:30 +00:00
David J. Wisneski
462cf31ed5
OPENJPA-240 XMLMapping Query testcase - fix identation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557444 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 01:32:03 +00:00
David J. Wisneski
b761732fdf
OPENJPA-240 XMLMapping Query testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557442 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 01:07:53 +00:00
Craig Russell
b8bb8404a9
OPENJPA-235 break-nullable-patch contributed by Markus Fuchs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557089 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 23:56:45 +00:00
Patrick Linskey
4b6b578f2b
OPENJPA_283. Committing Ignacio Andreu's patch.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@555694 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 16:52:22 +00:00
Patrick Linskey
3408ef1e0c
New test case. It works already, so this is mostly just additional coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@555389 13f79535-47bb-0310-9956-ffa450edef68
2007-07-11 20:36:55 +00:00
Patrick Linskey
774e7b5b8c
OPENJPA-274, OPENJPA-275. Improved our bulk update support to automatically increment version counters as necessary if an UPDATE query does not maintain the version fields itself. Also fixed a bug with all queries involving version fields by changing FieldMappings representing version fields to return their owning ClassMapping's Version's columns from a getColumns() call.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553912 13f79535-47bb-0310-9956-ffa450edef68
2007-07-06 14:49:52 +00:00
Patrick Linskey
e286a915d5
OPENJPA-278
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553629 13f79535-47bb-0310-9956-ffa450edef68
2007-07-05 20:51:01 +00:00
Marc Prud'hommeaux
8b5a7f68a0
OPENJPA-244 Fixed some formatting inconsistencies with the patch for OPENJPA-244
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553010 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 22:42:39 +00:00
Michael Dick
0c517d163e
OPENJPA-244 committing on behalf of Albert
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552996 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 21:55:29 +00:00
Patrick Linskey
1bded00298
OPENJPA-199. Passed all local tests; I have not run against the CTS though. It *should* work against the CTS, as it was a bug on our side, and not the spec's side.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552363 13f79535-47bb-0310-9956-ffa450edef68
2007-07-01 21:13:16 +00:00
Marc Prud'hommeaux
85b2e766ca
OPENJPA-239 Patch to support the generation of annotation mappings using the reverse mapping tool
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552358 13f79535-47bb-0310-9956-ffa450edef68
2007-07-01 19:37:04 +00:00
Patrick Linskey
5c4a8c7e73
OPENJPA-70. Added new RemoteCommitEvent payload type and logic to fire RemoteCommitEvents when stale records are detected. This logic still gets fired via afterCommit(), even though these checks can happen either after a commit or a flush is issued. Additionally, these events are only fired against local listeners, so actually represent local analysis that is detecting remote events, rather than remote events themselves.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552059 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 23:08:41 +00:00
Patrick Linskey
1b9d1e2d12
OPENJPA-262. Added test case for lifecycle and tx registries in BrokerFactories. Also discovered that BEFORE_PERSIST listeners (and possibly a couple of others) were not being invoked; fixed-by-inspection and simplified the registration of types in the lifecycle event handler.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551885 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 13:18:26 +00:00
Patrick Linskey
f34e22efe4
Added setUp() so that extending types don't need to always create one.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551844 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 10:52:24 +00:00
Patrick Linskey
49445edc83
OPENJPA-267. Test case for some basic MethodQL behavior.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551159 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 13:23:36 +00:00
Patrick Linskey
39f1071085
OPENJPA-262
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550185 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 09:16:57 +00:00
Marc Prud'hommeaux
bd51cad23f
Changed checking for javax.xml.bind.annotation.XmlType to use reflection instead of a hard-wired class name so we more gracefully handle cases where JAXB is not available.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@549517 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 15:44:06 +00:00
David J. Wisneski
1921d6cc59
OPENJPA-240 fix JAXB dependency and move XMLValueHandler to openjpa-jdbc-5.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548860 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 21:53:55 +00:00
David J. Wisneski
8bf89a655a
OPENJPA-240, packaging/renaming/JAXB dependency cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548834 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 19:44:58 +00:00
Patrick Linskey
9f0a7ff545
OPENJPA-259. Applied Craig's patch (minus the ACK char; maybe Craig meant ^L instead?), and added a test case. The test uses dynamic JPQL, but the parser change should work for XML-based named queries also, and it seems fair to allow newlines in dynamic strings as well.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547872 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 06:54:12 +00:00
David J. Wisneski
e0e176ab83
OPENJPA-240 Feature:Persistent field mapping support for XML column type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547837 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 00:09:45 +00:00
David J. Wisneski
1a130afb05
OPENJPA-240 Feature:Persistent field mapping support for XML column type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547832 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 23:45:00 +00:00
Marc Prud'hommeaux
0091bcabe3
Added a 'java14.jar' property that can be used to specify the location of the JDK 1.4 runtime jar, against which we will compile the JDK 1.4-specific modules. This can be used to ensure that JDK 1.5-specific methods and classes don't slip into the JDK 1.4 modules.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@546768 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 07:50:11 +00:00
Patrick Linskey
aa3353d34d
Reece's test case from OPENJPA-235. I was a bit nervous about the changes to EntityB and EntityC's relationships, but all the existing OpenJPA tests pass, so evidently we did not rely on the particular settings as they were.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@545360 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 01:18:40 +00:00
Patrick Linskey
aea920d171
Improve documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@545345 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 23:23:35 +00:00
Kevin W. Sutter
1ef670d2f6
I'm pretty sure the rollback() test method should be calling rollback() instead of commit()... :-) I found this while attempting some other tests, so I figured I would clean this up before somebody else stumbles across it.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@543503 13f79535-47bb-0310-9956-ffa450edef68
2007-06-01 15:24:32 +00:00
Kevin W. Sutter
c634dcb4d8
OPENJPA-248. Modified parseForeignKey to set the appropriate cascade update action.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@543265 13f79535-47bb-0310-9956-ffa450edef68
2007-05-31 21:24:46 +00:00
Marc Prud'hommeaux
3599a48964
Moving version to 1.0.0-SNAPSHOT as a result of mailing list vote
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@541929 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 19:18:37 +00:00
Marc Prud'hommeaux
0e19b714ac
Changed version from 0.9.8-incubating-SNAPSHOT to 0.9.8-SNAPSHOT to reflect move from incubation to TLP
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540829 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:36:05 +00:00
Marc Prud'hommeaux
f98ecf4d22
OPENJPA-235 Reverted patch since it was causing TCK failur
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@539630 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 23:31:55 +00:00
David J. Wisneski
9eaec94118
OpenJPA 168 testcase
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537213 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 15:44:13 +00:00
Michael Dick
59bd5b0d3f
OPENJPA-51 removing testcases
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536706 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 23:05:16 +00:00
Marc Prud'hommeaux
a92785fea6
OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Patrick Linskey
80671afcbf
OPENJPA-235. Reformatted code to meet OpenJPA conventions; widened some type arguments that seemed unnecessarily narrow.
...
This passes all the OpenJPA tests in my environment, and the logic seems sound. I think that we could adjust the algorithm to require less collection copying, but I don't think that we should hold up the commit for that type of optimization.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535379 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 20:58:49 +00:00
Patrick Linskey
2f07532f22
added clarifying comment to persistence.xml
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535359 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 19:22:50 +00:00
David J. Wisneski
d7d400b818
fix build break, class list is removed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535041 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 00:39:55 +00:00
David J. Wisneski
bcc3b67223
add query test for OPENJPA-51, queries with subselects with correlated/non-correlated aliases
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535003 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 22:49:49 +00:00
Patrick Linskey
43c931014a
OPENJPA-226
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@533218 13f79535-47bb-0310-9956-ffa450edef68
2007-04-27 20:46:03 +00:00
Patrick Linskey
a99763cf63
Updated recently-added files to meet Apache's latest header syntax.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532833 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 18:28:18 +00:00
Patrick Linskey
7d7e303f84
OPENJPA-229. Not sure how these didn't get committed in the first commit.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532808 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:24:40 +00:00
Patrick Linskey
b2beaec634
OPENJPA-229
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532805 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:17:10 +00:00
David J. Wisneski
129360ace9
OPENJPA-222 clean up
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530860 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 17:24:32 +00:00
David J. Wisneski
0bc9685aa7
OPENJPA 222 fix for test case
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530574 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 22:21:36 +00:00
David J. Wisneski
c816683d08
OPENJPA 222 fix for the testcases for DB2
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530563 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:58:46 +00:00
David J. Wisneski
0f66458d4c
OPENJPA-222 testcases for DB2
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530554 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:33:23 +00:00
Michael Dick
b0ba394a57
adding license
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529597 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 13:38:34 +00:00
Michael Dick
09dad99722
moving derby.log file to target directory
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529415 13f79535-47bb-0310-9956-ffa450edef68
2007-04-16 21:55:03 +00:00
Marc Prud'hommeaux
640cddad04
Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
Michael Dick
4ea1c3f738
adding license to java files
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527728 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:52:54 +00:00
A. Abram White
3885031a89
OPENJPA-214 : Support float and double fields as single-field identity primary
...
keys.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:25:11 +00:00
A. Abram White
b4a3a77840
OPENJPA-134 : When we're performing eager fetches and we can detect that we're
...
already fetching the owning side of a bidi relation, cut off eager selecting
and loading when we come across the back-ptr to the owner again.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527565 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 16:21:13 +00:00
Michael Dick
7fd119e840
updating trunk version
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
Patrick Linskey
840644fcc5
OPENJPA-182. Changed JDBCFetchPlan.setIsolation() to use enums; added logic to handle enum hints to QueryImpl; moved from IllegalArgumentException to InvalidArgumentException to unify exception processing for both queries and find calls.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526316 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:22:06 +00:00
Patrick Linskey
bd93bfa284
OPENJPA-182. forUpdateClause is now used even if forUpdate is false, to allow for read-only optimizations. Changed JDBCFetchPlan.setIsolationLevel and JDBCFetchConfiguration.setIsolationLevel to just JDBCFetchXXX.setIsolation.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526266 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:50:53 +00:00
A. Abram White
60a1e54f07
OPENJPA-202 : Don't detach LRS fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526253 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:17:44 +00:00
Patrick Linskey
57442b7059
HSQL doesn't support locking; short-circuiting tests that require pessimistic locking
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526005 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 23:57:44 +00:00
Patrick Linskey
814637ca6c
OPENJPA-182. Moved to API-based model. Query.setHint() can still be used via the query hint => fetch plan binding.
...
Removed the logic to override the forUpdate value, since the calling code already incorporates fetch configuration data into its decision about how to invoke toSelect(). Added a test case to assert this behavior.
Also cleaned up some minor whitespace issues, and reduced code duplication by moving a couple of concepts up into DBDictionary. Removed some seemingly-unnecessary overrides from H2Dictionary.
Added a test case for isolation level configuration. For non-DB2 dictionaries, it asserts that an exception is thrown during execution. Someone with DB2 knowledge / access should fill in the test case for the DB2 cases. As we add support for per-query isolation level configuration for other databases, we should change this test case.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525997 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 22:55:52 +00:00
A. Abram White
80f7795fef
Cleanup bugfix relating to use of a default schema declared in orm.xml:
...
- Removed prepending of schema name in PersistenceMappingDefaults.getTableName
methods as unnecessary.
- Moved storage of default schema name to ClassMappingInfo as that's the only
place we use it for now.
- Moved setting of default schema name into the more efficient endClassMapping
method of XMLPersistenceMappingParser.
- Fixed MappingInfo.createTable logic to pass the full table name to
SchemaGroup.findTable. This is important b/c the DynamicSchemaGroup (used
during the mappingtool's buildSchema action, the default for JPA) dynamically
adds the table to itself during the findTable operation. Without the full
table name it would always add the table to the default schema.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525606 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 21:13:19 +00:00