A. Abram White
1dbb7a9044
Tests and fixes for entities with multiple same-typed embedded entities, which
...
themselves have relations to other entities.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453321 13f79535-47bb-0310-9956-ffa450edef68
2006-10-05 19:13:26 +00:00
A. Abram White
69d8dd3da9
Enable caching of embedded instances by datacache. Fix bugs in
...
DataCachePCDataGenerator.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453066 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 23:43:51 +00:00
A. Abram White
d0bca27ecd
When there is only one callback exception, use its error message in top-level
...
exception.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453044 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 21:52:17 +00:00
A. Abram White
361a77c451
Fix bug that could prevent user-assigned value from being inserted into a column
...
with a database default value.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453030 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 21:16:06 +00:00
A. Abram White
5337ce10d0
Possible fix for OPENJPA-13 JIRA issue. Also fix possible NPE on delayed close
...
on transaction completion in managed environment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453016 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 20:46:25 +00:00
A. Abram White
8785be46e7
Handle exceptions from transaction listeners appropriately. Allow user to
...
override default CallbackMode for both lifecycle and transaction listeners.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452981 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 19:12:34 +00:00
Marc Prud'hommeaux
88acae75c1
Removed special logic for forcing an inner join for projection clauses, since that logic is duplicated elsewhere.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452684 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:33:46 +00:00
A. Abram White
c1a857c915
Move the Perf class that supports some of our concurrency utils on older JVMs
...
to lib, where it belongs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452683 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:26:45 +00:00
A. Abram White
17b27d44d0
Fix relative Javadoc URLs.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452681 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:10:28 +00:00
A. Abram White
afe9acd576
Doc corrections.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452672 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 23:00:18 +00:00
A. Abram White
174ae93d41
MetaDataFactory.newInstance method no longer needed. Continue work on docs
...
(note: docs may temporarily be in invalid state).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452592 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 18:36:45 +00:00
Marc Prud'hommeaux
f18ea3dd33
Set the data cache schedule thread to be a daemon thread.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452289 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 01:20:16 +00:00
A. Abram White
bdae6535ec
Miscellaneous cleanup and fixes. Some documentation review.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452243 13f79535-47bb-0310-9956-ffa450edef68
2006-10-02 22:22:18 +00:00
A. Abram White
e30632b60b
Trying a new approach to automatic enhancement in a container. Might have to
...
revert.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452141 13f79535-47bb-0310-9956-ffa450edef68
2006-10-02 17:39:28 +00:00
Patrick Linskey
bc9422ea5d
improved error message
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451707 13f79535-47bb-0310-9956-ffa450edef68
2006-10-01 01:28:25 +00:00
Stephen Kim
9fb0a9a6f5
fix deletion of PNewProvisional
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451691 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 22:34:55 +00:00
Stephen Kim
923eb32d31
fixed duplicate preFlush and bug wrt persist vs nonprovisional in
...
singlefieldmanager
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451543 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 05:29:10 +00:00
Marc Prud'hommeaux
f74ac8b6b9
Prevent reentrant calls to transform() in order to prevent attempts to enhance OpenJPA libraries (for cases where OpenJPA falls under the control of the enhancing class loader).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451517 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 02:00:40 +00:00
Marc Prud'hommeaux
cc25d2a536
Changed revision checking system to spawn the "svnversion" command rather than directly parsiong the .svn/entries file. This gives a more accurate revision number, and it also deals with the new subversion format, which is no longer XML.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451471 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:08:28 +00:00
Marc Prud'hommeaux
5eb55ee87a
Changed REVISION_NUMBER to be a String, since Subversion revisions can be a string (e.g., "420667:451468M")
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451470 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:07:21 +00:00
Patrick Linskey
b198cb7305
changing phase so that the svn artifact gets into classes dir before jars are made
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451468 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 21:48:29 +00:00
Stephen Kim
f104321da8
avoid duplicate event call
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451011 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 20:18:07 +00:00
Stephen Kim
d833950424
committed wrong version of pNewProviisonal handling
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450937 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 17:47:23 +00:00
Stephen Kim
bd340fbe15
PNewProvisional again. I think I covered the object graph reflush issue
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450916 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 16:34:05 +00:00
Pinaki Poddar
98d1da1fba
Moved Entity Listener constraints from MetaDataDefaults in kernel to JPA facade PersistenceMetaDataDefaults
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450731 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 07:24:11 +00:00
Pinaki Poddar
24c51d9fe6
Adding informative messages when non-default Persistence Provider is configured.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450674 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 03:00:31 +00:00
Marc Prud'hommeaux
e1e96406e8
Only treat methods as persistent by default if there is a setter for the method in the described class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450649 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 00:33:48 +00:00
Pinaki Poddar
7baaaf4b76
Fixing http://issues.apache.org/jira/browse/OPENJPA-60
...
Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450632 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 23:19:17 +00:00
Marc Prud'hommeaux
3620b80ce4
Null checks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450619 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 22:50:08 +00:00
Stephen Kim
7522db86fd
boot provisional changes for now. I think I'm missing a huge hole with hashing
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450350 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 06:46:15 +00:00
Stephen Kim
c6537ccba6
PNewProvisional
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450321 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 05:24:44 +00:00
Marc Prud'hommeaux
9443b9f9bc
Un-did last command, since INDEX already existed in the reservedWordSet.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450214 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 21:23:00 +00:00
Marc Prud'hommeaux
a55664495e
Added "INDEX" to the reserved word list.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450200 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:57:20 +00:00
A. Abram White
46736c6018
Fix configuration warnings for misspelled property names.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450173 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:11:33 +00:00
Pinaki Poddar
5b9c773c81
Correcting JavaDoc formatting error.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450164 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:35:41 +00:00
Pinaki Poddar
9a52726ea2
Applying the constraints that the entity listner class
...
a) must have a no-arg constructor
b) multiple methods of the same class must not register for the same event
(JPA Spec Section 3.5)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450158 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:23:48 +00:00
A. Abram White
26a3499fe5
Leave escape character in string if we use db wildchars as matches wildcards.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450144 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 18:53:14 +00:00
A. Abram White
9a40eb69b0
Add David Ezzio's detachment test.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450122 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 17:39:21 +00:00
A. Abram White
62bc6c997c
Change default MaxFetchDepth to -1 (unlimited). Also move the use of multiple
...
configuration prefixes to ProductDerivations for simple static access. Modify
some cases of looking for "openjpa." prefixes to properties to properly look
for all configured prefixes instead.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 16:54:30 +00:00
Marc Prud'hommeaux
d3956a7d98
Override "ON DELETE SET NULL" foreign keys if the foreign column is "NOT NULL".
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449532 13f79535-47bb-0310-9956-ffa450edef68
2006-09-25 00:19:36 +00:00
Marc Prud'hommeaux
a8c1fad16c
Fixed varbinaryTypeName and longVarbinaryTypeName to be "BLOB" (they were defaulting to "VARBINARY", which is not recognized under DB2 or Derby).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449526 13f79535-47bb-0310-9956-ffa450edef68
2006-09-24 23:58:00 +00:00
Patrick Linskey
ce937180b4
wrap types before deciding whether or not a cast is needed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449322 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 22:48:14 +00:00
Patrick Linskey
aa6309af35
removed erroneous docs about GeneratedValue
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449144 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 01:57:05 +00:00
Marc Prud'hommeaux
5dea14f301
Use the escape character to escape out wildcard characters from the source string.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449130 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 00:04:51 +00:00
A. Abram White
b7f2721aff
When selecting a relation field as a projection, outer join across the relation
...
even if forceOuter on the original path is false.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449105 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 22:06:06 +00:00
A. Abram White
ed0d6b1fec
Version number fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449048 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:51:23 +00:00
A. Abram White
a9089d2688
PDeleted version check causing problems.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449044 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:37:11 +00:00
A. Abram White
7a74bedd70
fix JDBC Abs query function's return type.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448757 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 00:52:08 +00:00
A. Abram White
d090d717f4
Fix sequence bug I introduced with last sequence synchronization refactoring.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448708 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 22:01:57 +00:00
A. Abram White
68572a9197
Die in ProductDerivations.load() if given resource/file can't be parsed by any
...
ProductDerivations in the system.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448625 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 18:28:06 +00:00