Mark Struberg
4bffcc9c9a
OPENJPA-1873 fix PostLoad entity listener behaviour
...
This fix introduces a new flag POST_LOAD_ON_MERGE wich is disabled
by default, retaining the old behaviour.
Enabling it will guarantee that the Entity posted to PostLoad entity
listeners are always the one from the database. This fixes the old
habit that PostLoad will also get triggered (with false/mixed values)
for lazy loading, merging, etc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1211873 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 13:27:31 +00:00
Albert Lee
9fdf242b40
OPENJPA-2085 Use ASM to reconstruct the missing StackMapTable attribute in class file after entity enhancement. BCClassWriter is contributed by Brett Kail.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1209373 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 06:42:55 +00:00
Richard G. Curtis
c3d9750f74
OPENJPA-2047: Make persistence-aware message less verbose. Patch contributed by Jacob Nowosatka.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1207647 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 22:01:50 +00:00
Richard G. Curtis
d52e73f024
OPENJPA-2075: Abstract parameter handling from QueryImpl.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203337 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 19:13:07 +00:00
Richard G. Curtis
f81908f3ac
OPENJPA-1986: Update migration consideration docs and Compatibility javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1202800 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 17:30:19 +00:00
Pinaki Poddar
83bc7aa8ef
Relax query engine for extension
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200388 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 15:46:14 +00:00
Albert Lee
d64a3e5fdb
OPENJPA-2071 Guarded NPE against isInterface call from ResultPacker constructor with null parameter
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1199919 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 19:02:10 +00:00
Richard G. Curtis
9c1ac5ffc9
OPENJPA-2042: Fix possible NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1198786 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 15:44:58 +00:00
Richard G. Curtis
3d5b44956d
OPENJPA-2057: Reverting previous commits.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1197994 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 17:17:26 +00:00
Pinaki Poddar
31e00f7d76
OPENJPA-2057: Change classloading scheme
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1194953 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 17:55:26 +00:00
Pinaki Poddar
8d21608618
OPENJPA-2065: allow interface as result class
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190723 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 01:04:52 +00:00
Pinaki Poddar
3494fab794
OPENJPA-2057: Change classloading scheme
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190716 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 00:44:11 +00:00
Heath Thomann
c8a84fd37d
OPENJPA-2051: Change to ensure entities are properly cascaded after a flush.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1186903 13f79535-47bb-0310-9956-ffa450edef68
2011-10-20 16:37:15 +00:00
Pinaki Poddar
e65b2aa518
OPENJPA-2030: Loading custom Auditor in OSGi environment
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1176436 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 15:32:59 +00:00
Michael Dick
fe7e359367
OPENJPA-2042: Use weak reference HashSet to store registered class listeners.
...
Submitted By: Jacob Nowosatka
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1171135 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 15:28:19 +00:00
Pinaki Poddar
905500dd19
Checkstyle problems
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1162349 13f79535-47bb-0310-9956-ffa450edef68
2011-08-27 13:39:46 +00:00
Pinaki Poddar
18fed4dd53
OPENJPA-2030: Refactor AuditManager
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1162163 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 16:54:04 +00:00
Pinaki Poddar
5e073afe94
OPENJPA-2030: Audit is inactive by default
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161622 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 16:11:08 +00:00
Albert Lee
184922df56
OPENJPA-2030 Add newline to EOF
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161618 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 16:00:50 +00:00
Pinaki Poddar
ab5e97d06d
OPENJPA-2030: Fix Checkstyle error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161580 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 14:37:51 +00:00
Michael Dick
cdd53067bf
OPENJPA-2030: set eol-style on new files
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161564 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 13:32:15 +00:00
Pinaki Poddar
8996376462
OPENJPA-2030: First version of Audit facility
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161349 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 01:06:39 +00:00
Pinaki Poddar
a35c187d8f
OPENJPA-2030: First version of Audit facility
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161348 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 01:06:11 +00:00
Albert Lee
d99c5c06c3
OPENJPA-2043 make cached hashcode non-transient and avoid using variant hashcode from Class object.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1160528 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 02:34:48 +00:00
Michael Dick
78d8843009
OPENJPA-2040: Default to non-strict MetaData and Mapping Factories when a user provided factory class is set.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1159318 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 17:20:04 +00:00
Heath Thomann
3598a2d8eb
OPENJPA-758: Added code to check the ClassResolver to get a class loader when attempting to load a ValueHandler or FieldStrategy.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1155394 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 15:21:06 +00:00
Richard G. Curtis
45bceaa991
OPENJPA-2035: Backing out previous changes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1154992 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 15:32:39 +00:00
Michael Dick
4412599698
OPENJPA-2036: Check JAVA_HOME for lib/tools.jar for all java vendors, not just IBM.
...
Submitted By: Jason Pyeron
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1151885 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 15:03:04 +00:00
Richard G. Curtis
868035a540
OPENJPA-2035: Remove JMock from imports from testcase.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1150810 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 17:51:41 +00:00
Richard G. Curtis
139cd88d35
OPENJPA-2035: Fix testcase to run from cmd line.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1150757 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 15:49:06 +00:00
Michael Dick
22356a66e7
OPENJPA-2035: setting svn:eol-style on new file
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1150700 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 13:46:15 +00:00
Richard G. Curtis
03f054f8c9
OPENJPA-2035: Allow distributed cache(s) operate without needing domain classes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1150346 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 12:54:45 +00:00
Michael Dick
928aa703cb
OPENJPA-2027: Use SingularAttribute for unannotated arrays. ListAttribute for @PersistentCollections
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1143519 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 18:17:36 +00:00
Milosz Tylenda
8a85ffb402
OPENJPA-487: Simplify generated SQL for SUBSTRING and LOCATE JPQL functions by switching from JDO style to JPA style in expressions. SUBSTRING parameters are still inlined to support grouping by SUBSTRING.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1142426 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 12:32:03 +00:00
Pinaki Poddar
31c0249e14
OPENJPA-2017: Adding DEATCH.NONE option. Retry commit after local test run
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1141556 13f79535-47bb-0310-9956-ffa450edef68
2011-06-30 14:54:31 +00:00
Richard G. Curtis
c8c6c9d68c
OPENJPA-1986: Remove newly added serialVersionUID.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1141158 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 16:46:18 +00:00
Richard G. Curtis
01082363b7
OPENJPA-2020: Undo some of previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1141142 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 16:00:54 +00:00
Michael Dick
3a2d50e011
OPENJPA-1768: Check whether the broker is already loading before recursively loading an entity from datacache
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1140315 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 20:59:01 +00:00
Richard G. Curtis
ba7f21fcf1
OPENJPA-2020: Open up some of StateManagerImpl to all for greater extensibility.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1140197 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 15:06:21 +00:00
Michael Dick
f0fbbaa26a
OPENJPA-2017: Changes cause test failures in openjpa-lib. Reverting for now.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1137645 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 14:54:58 +00:00
Pinaki Poddar
db960fbeae
OPENJPA-2017: Introduce AutoDetach.NONE option to improve batch insert operation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135857 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 23:51:18 +00:00
Pinaki Poddar
9be9d836c4
OPENJPA-2017: Introduce AutoDetach.NONE option to improve batch insert operation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135776 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 20:18:20 +00:00
Pinaki Poddar
0046a656c9
Print configuration array values properly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135320 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 22:17:40 +00:00
Richard G. Curtis
cc3c3eb055
OPENJPA-2014: Allow proxies to stay in place when using LiteAutoDetach.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1134726 13f79535-47bb-0310-9956-ffa450edef68
2011-06-11 19:00:01 +00:00
Heath Thomann
cabf34a6fd
OPENJPA-1999: Optional support for non-sequential positional parameters - used Rick's provided patch for trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1134128 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 23:16:09 +00:00
Michael Dick
8ef3f3db35
OPENJPA-2011: Optionally prevent reparsing annotations in in query mode.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133900 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:49:11 +00:00
Pinaki Poddar
0de12ed492
OPENJPA-2012: Support in-memory MIN()/MAX() on non-numeric types
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133605 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 23:50:30 +00:00
Michael Dick
0bcded74e1
OPENJPA-2010: Check line number and source file before logging duplicate meta data warning
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133546 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 20:19:03 +00:00
Jeremy Bauer
81c46c503f
OPENJPA-2006 If flushing, also pre-flush non-provisional entities to allow sequence ID population.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1127573 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 16:11:47 +00:00
Michael Dick
1148ba809d
OPENJPA-1995: detect mixed parameter types in JPQL query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101289 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 02:42:30 +00:00
Michael Dick
26aa776627
OPENJPA-1992: Throw exception if a JPQL query is missing the first positional parameter
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1100787 13f79535-47bb-0310-9956-ffa450edef68
2011-05-08 18:39:07 +00:00
Jody Grassel
6fc7d55a09
OPENJPA-1993: Deadlock Potential with XML ORM Processing
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1100363 13f79535-47bb-0310-9956-ffa450edef68
2011-05-06 20:22:23 +00:00
Richard G. Curtis
1b8ce008b2
OPENJPA-1986: Avoid querying the db when cascading a persist to a new instance.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097209 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 19:16:36 +00:00
Pinaki Poddar
bb50bc3caf
Reduce verbosity of missing canonical meta-classes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1096937 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 22:39:12 +00:00
Michael Dick
76552a11fd
remove casts for broker factory aliases
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1096876 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 19:54:27 +00:00
Albert Lee
9ea0354f1b
OPENJPA-1984 - Skip non-root object validation when performing remove(root object). Let's validation provider to perform root object validation so that the contraint violation can report the correct root bean.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1096791 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 16:00:52 +00:00
Richard G. Curtis
354eb3078e
OPENJPA-1983: Don't cascade to an unloaded field when merge is called on a managed Entity.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1095401 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 13:27:56 +00:00
Jeremy Bauer
e6b590d73d
OPENJPA-1966 Updated attach strategies to query attach cache before going to the broker for entity references. Prevents merging in a detached entity that is being used for field attachment.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087054 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 19:32:41 +00:00
Richard G. Curtis
9b5fa5152a
OPENJPA-1960: Allow openjpa.InitializeEagerly to be used with BV.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084349 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 20:50:21 +00:00
Richard G. Curtis
7eb317e488
OPENJPA-1928: Fix @Factory method resolution when name is ambiguous. Patch contributed by Edward Sargisson.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084280 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:23:28 +00:00
Richard G. Curtis
2cfb4f6232
OPENJPA-1944: Properly handle a null version field.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084265 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 17:41:58 +00:00
Jeremy Bauer
0971bd301c
OPENJPA-1787 Fixed VLEM hasUpdateListeners & hasPersistListeners methods and added additional validation test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1082259 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 18:48:11 +00:00
Michael Dick
d3d944ccd2
OPENJPA-1959: make runtime exception translator transient
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080978 13f79535-47bb-0310-9956-ffa450edef68
2011-03-12 19:05:55 +00:00
Jeremy Bauer
6fdcebd673
OPENJPA-1787 Updated "new entity" merge path through AttachManager and BrokerImpl to refrain from firing a pre-persist event before the state of the merged entity is copied to the new entity. Test cases based upon code provided by Oliver Ringel.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080751 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 20:29:50 +00:00
Albert Lee
0c37fc6e57
OPENJPA-1943 - Apply query timeout value to pessimistic row lock statement execution.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1072061 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 16:59:16 +00:00
Michael Dick
891ccc625c
OPENJPA-1912: Generate externalizable methods correctly for super and subclasses.
...
Submitted By: Mark Struberg
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1071123 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 02:12:28 +00:00
Pinaki Poddar
b1b503e136
OPENJPA-1050: Generics for extent
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1069984 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 23:34:15 +00:00
Michael Dick
c415857292
OPENJPA-1593: Add OSGi managed runtime.
...
Submitted By: Wolfgang Glas
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1068588 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 21:28:30 +00:00
Pinaki Poddar
5d5ac618b9
OPENJPA-1050: use generics for FetchGroup
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1061582 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 00:07:20 +00:00
Richard G. Curtis
04b1abb039
OPENJPA-1856: Make DataCache eviction due to bulk updates configurable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1057315 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 19:03:21 +00:00
Richard G. Curtis
06c3ec6458
OPENJPA-1918: Append PUInfo classloader to MDR.preload() classloader chain.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1056126 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 00:02:05 +00:00
Fay Wang
c39cd993fa
OPENJPA-1911: fix merge problem for entities with derived id
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1054717 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 19:32:03 +00:00
Richard G. Curtis
caeb66ab25
OPENJPA-1896: Allow merging a StateManagerless Entity with a default primitive version.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1052025 13f79535-47bb-0310-9956-ffa450edef68
2010-12-22 18:41:09 +00:00
Richard G. Curtis
a927273cf9
OPENJPA-1900: Fix ClassCastException when serializing a proxy for an Entity that exists in an active persistence context. Patch contributed by Mark Struberg.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1050169 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 21:29:51 +00:00
Albert Lee
20c1d07a38
OPENJPA-1904 Propagate refresh operation for eagerly fetched relationship fields.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1044006 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:33:11 +00:00
Fay Wang
09dab24fcd
OPENJPA-1810: fix performance regression for non-criteria query cache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1043572 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 18:20:21 +00:00
Jeremy Bauer
b56fcf3287
OPENJPA-1884 Updated entity manager impl to process cache store mode property provided on refresh method and updated data cache manager to refresh the L2 properly when a store mode is provided.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1042698 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 16:09:08 +00:00
Michael Dick
2cc69063aa
[maven-release-plugin] prepare release 2.1.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1040584 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 15:30:48 +00:00
Michael Dick
406710b477
OPENJPA-1888: Add generics to ManagedCache and AbstractStoreManager.
...
Submitted By: Guy Korland
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037844 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 19:18:16 +00:00
Michael Dick
f0ddf938df
OPENJPA-1885: rename new method to persistInternal and some code formatting changes
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037827 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 18:41:03 +00:00
Michael Dick
2009b5c016
OPENJPA-1885: refactor persistAll in BrokerImpl.
...
Submitted By: Guy Korland
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037237 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 15:18:01 +00:00
Richard G. Curtis
73cd301520
OPENJPA-1892: Fix NPE in DataCacheStoreManager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1036988 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 19:48:49 +00:00
Fay Wang
dcaa2177c6
OPENJPA-1890: fix NPE when an embeddable is set to a managed entity more than once
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1036244 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 21:55:21 +00:00
Pinaki Poddar
ea5db0fbb3
OPENJPA-1889: Relax binding query parameter type checks for enums
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1035884 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 00:38:17 +00:00
Richard G. Curtis
98ebca2fe7
OPENJPA-1886: Remove query parameters when tracing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1035834 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16 22:12:18 +00:00
Richard G. Curtis
ef9a49e883
OPENJPA-1844: Update javadoc for DataCacheInstrument.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1033705 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10 20:56:30 +00:00
Richard G. Curtis
c960f725cb
OPENJPA-1882: Fix DataCacheStoreManager NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1033637 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10 18:34:35 +00:00
Kevin W. Sutter
5040a436e7
OPENJPA-1881. Creating a new "completion" trace message for the enhancement processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1033480 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10 14:13:10 +00:00
Fay Wang
ad98d444e1
OPENJPA-1810: make QueryKey distinguishable for CriteriaQuery
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1031244 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 21:03:23 +00:00
Richard G. Curtis
531381429d
OPENJPA-1872: Optimize CacheMap get(..) for non-pinned usage.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1031110 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 17:58:09 +00:00
Richard G. Curtis
2f6baf7119
OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030479 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03 14:51:28 +00:00
Richard G. Curtis
66ce36c0ad
OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-kernel.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030139 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 17:33:41 +00:00
Richard G. Curtis
d99b9ba034
OPENJPA-1867: Fix ClassCastException when loading from DataCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030056 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 14:19:30 +00:00
Richard G. Curtis
65b7d76999
OPENJPA-1844: Remove more jconsole changes from trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028774 13f79535-47bb-0310-9956-ffa450edef68
2010-10-29 14:40:47 +00:00
Donald Woods
900304d3c3
OPENJPA-1861 build updates to support using Maven 3.0
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028748 13f79535-47bb-0310-9956-ffa450edef68
2010-10-29 14:00:35 +00:00
Pinaki Poddar
81e1f23a13
OPENJPA-1851: change to more appropriate variable name
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028466 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 20:43:35 +00:00
Richard G. Curtis
8ceee2b1a4
OPENJPA-1844: Remove JConsole plugin from trunk and refactor some of DataCacheMBean.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028457 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 20:13:19 +00:00
Donald Woods
837d8ccd48
OPENJPA-1320 Incorrect hashcode()/equals() implementation(s) for BrokerImpl. Patch contributed by Heath Thomann.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028456 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 20:11:11 +00:00
Pinaki Poddar
54234f6102
OPENJPA-1845: Detect query using IN expression with parameters and exclude from query cache
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028393 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 17:18:09 +00:00
Richard G. Curtis
61f21099b6
OPENJPA-1858: Cache a reference to MetaDataRepository in BrokerImpl.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028114 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 21:53:05 +00:00
Richard G. Curtis
7c377a9043
OPENJPA-1856: Executing bulk updates should evict from DataCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027983 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 14:47:44 +00:00
Donald Woods
f3b0fd45e4
OPENJPA-1844 Update build to find jconsole.jar on MacOSX
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027257 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25 20:23:54 +00:00
Richard G. Curtis
2ab51d77a6
OPENJPA-1844: Fix line length in DataCacheTable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027195 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25 17:00:31 +00:00
Richard G. Curtis
ae1e715248
OPENJPA-1844: Localize user facing strings.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027190 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25 16:46:03 +00:00
Michael Dick
93e28fc3ac
OPENJPA-1844: setting eol-style
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1026052 13f79535-47bb-0310-9956-ffa450edef68
2010-10-21 16:13:55 +00:00
Richard G. Curtis
daac0ac086
OPENJPA-1844: Add DataCache JConsole plugin.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1026046 13f79535-47bb-0310-9956-ffa450edef68
2010-10-21 16:01:51 +00:00
Richard G. Curtis
b62b8fc920
OPENJPA-1644: Don't clear values from a deleted instnace.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021400 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 16:04:58 +00:00
Richard G. Curtis
426dce3867
OPENJPA-1801: Remove debug.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1005016 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 13:15:39 +00:00
Richard G. Curtis
54bef663e7
OPENJPA-1801: Refactor cache statistics.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1004818 13f79535-47bb-0310-9956-ffa450edef68
2010-10-05 21:12:52 +00:00
Catalina Wei
cde2a4aaf2
OPENJPA-1814: JPQL fails with Group By and Having aggregate_expression IN (subquery)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1002419 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 23:36:54 +00:00
Michael Dick
06537153ca
Remove compiler warnings in AbstractStoreManager
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1000572 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 18:42:33 +00:00
Michael Dick
474c1b60c9
OPENJPA-1790: Added ProxyConcurrentMaps class (minor formatting changes from Jody's patch)
...
Submitted By: Jody Grassel
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1000292 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 02:20:07 +00:00
Donald Woods
cccd4c799d
OPENJPA-1811 Dynamic load of enhancer agent on Mac OS X fails
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1000209 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 20:41:15 +00:00
Donald Woods
b76ab3884e
OPENJPA-1804 change subclassing w/o redefinition from a info to warn level logging
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@999425 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 14:09:17 +00:00
Richard G. Curtis
679fee98d6
Fix capitalization localizer.properties file.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@997354 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 14:42:44 +00:00
Fay Wang
35205c46ac
OPENJPA-1784: clean up fix
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@995596 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 22:35:19 +00:00
Fay Wang
9c25bd1633
OPENJPA-1784: improve dirty-checking for persistent maps when the get method is called to retrieve an embeddable value.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@995333 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 06:47:46 +00:00
Catalina Wei
f5dbf21ca5
OPENJPA-1782: Accept double quoted string literal in JPQL
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@993601 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 04:54:47 +00:00
Catalina Wei
93c0bbea8f
OPENJPA-1736: Mappings with foreign keys as identity fields sometimes not resolved correctly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987772 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 15:46:34 +00:00
Richard G. Curtis
3b20d750e7
OPENJPA-1770: Fix fetching an Entity with a null embeddable from the DataCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987321 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 21:38:25 +00:00
Donald Woods
560afb7df4
OPENJPA-1712 Merge in build updates from 2.0.x branch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987238 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 17:31:55 +00:00
Richard G. Curtis
63a24dc7bb
OPENJPA-1769: Fix Broker.getObjectId(..) to work on detached Entities with no DetachedStateManager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986963 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18 21:52:59 +00:00
Richard G. Curtis
bf9a1edd69
OPENJPA-1763: Refactoring original change.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986841 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18 18:30:18 +00:00
Jeremy Bauer
a36ace562b
OPENJPA-1739 Added additional metrics to cache statistics and updated instrumentation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@984896 13f79535-47bb-0310-9956-ffa450edef68
2010-08-12 18:18:43 +00:00
Jeremy Bauer
25ccc95d6c
OPENJPA-1739 Added basic stats tracking to query result cache. Updates to JMX provider. Added tests to jmx module for query cache and prepared SQL cache instruments.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@984633 13f79535-47bb-0310-9956-ffa450edef68
2010-08-12 02:40:23 +00:00
Richard G. Curtis
0876c93ff6
OPENJPA-1763: Auto configure RemoteCommitProvider if it isn't set when the DataCache is enabled.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@984601 13f79535-47bb-0310-9956-ffa450edef68
2010-08-11 22:00:25 +00:00
Donald Woods
bcfadcff1b
OPENJPA-1712 Fix creation of test artifacts, so they get signed during -Papache-release deploys to nexus repo
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@983040 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 16:22:21 +00:00
Jeremy Bauer
eef3693be8
OPENJPA-1739 Remove unnecessary dynamic mbean methods
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@982860 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 03:39:07 +00:00
Jeremy Bauer
1f58c01ea4
OPENJPA-1739 Fixes to JMXProvider and cache MBeans
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@982848 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 02:10:14 +00:00
Jeremy Bauer
536e3a284b
OPENJPA-1739 Fixed minor bug and added more test variations.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@982342 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 17:33:13 +00:00
Pinaki Poddar
46026f012c
OPENJPA-1567: Allow reference to sibling managed instances
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@982048 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 22:09:22 +00:00
Jeremy Bauer
733adeb47b
OPENJPA-1739 Rev 1 of pluggable instrumentation for OpenJPA. Includes an test provider and portions of a JMX platform MBean based provider.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@981719 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 01:55:02 +00:00
Richard G. Curtis
e65737308b
OPENJPA-1757: Check CacheRetrieveMode in DataCacheStoreManager when synchronizing version.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@981664 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 19:31:45 +00:00
Richard G. Curtis
bb7c9b2fd8
OPENJPA-1727: Update QueryCacheStoreQuery.checkCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@981549 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 15:14:23 +00:00
Patrick Linskey
7d5c4f4dce
fix docs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@981327 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 21:54:39 +00:00
Richard G. Curtis
4dcca87500
OPENJPA-1727: Fix QueryCache eviction when returning an empty result and using the TIMESTAMP eviction policy.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@980963 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 21:02:04 +00:00
Richard G. Curtis
07709672f7
Refactor MetaDataRepository to use for each loop.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@980916 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 18:42:38 +00:00
Michael Dick
2f880eaacb
OPENJPA-1690: Add serialUID
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@979419 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 19:50:46 +00:00
Fay Wang
44a7674d6e
OPENJPA-1740: fix Type expression when entities use Joined table strategy.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@967240 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 20:15:06 +00:00
Michael Dick
ebd30a7cc7
OPENJPA-1742: move cfName logic to JDBCConfiguration, add tests for nonJTADataSource
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@966600 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 11:57:45 +00:00
Richard G. Curtis
c3a7417e24
OPENJPA-1734: Refactor JavaVendors into an Enum and fix exception reported in JIRA.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@965864 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 14:40:23 +00:00
Richard G. Curtis
9225c60a74
OPENJPA-1734: Add support for the DynamicEnhancer on IBM jvm.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@965633 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 21:02:36 +00:00
Fay Wang
90373cb93f
OPENJPA-1726: fix the locate and substring for Postgres as it only accepts integer as the start index.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964967 13f79535-47bb-0310-9956-ffa450edef68
2010-07-16 22:39:06 +00:00
Richard G. Curtis
84812bb211
OPENJPA-1378: Refactor cache init code.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964617 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 21:40:02 +00:00
Dianne E. Richards
c45cba1f29
OPENJPA-1554 Add license header to BooleanId
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964484 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 16:39:00 +00:00
Dianne E. Richards
720b8f7e71
OPENJPA-1554 Support boolean as an id (required by spec)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964480 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 16:26:27 +00:00
Richard G. Curtis
d899ba8107
OPENJPA-1626: Add Name property to AbstractQueryCache, contributed by Amy Yang.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964170 13f79535-47bb-0310-9956-ffa450edef68
2010-07-14 20:15:41 +00:00
Richard G. Curtis
124d3ca7b5
OPENJPA-1378: Expose Lru cache on DataCache and QueryCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@964097 13f79535-47bb-0310-9956-ffa450edef68
2010-07-14 17:01:51 +00:00
Dianne E. Richards
512122c4ba
OPENJPA-1722 Add writeReplace() method to DistinctResultList to avoid serialization exception when EntityManager is closed.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@963764 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 15:42:31 +00:00
Richard G. Curtis
d5e876372d
OPENJPA-1676: Handle null class name in PCClassFileTransformer.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@963752 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 15:10:41 +00:00