Commit Graph

842 Commits

Author SHA1 Message Date
Pinaki Poddar 1ff5810e9e OPENJPA-250: Correct MetaDataRepository plug-in configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820804 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 21:30:39 +00:00
Pinaki Poddar 99844b6b1f OPENJPA-1332: Make some Value "private".
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820712 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 16:43:19 +00:00
Donald Woods 797de03a10 OPENJPA-1229 Update NOTICE files to match new ASF/Sun agreement for releasing early access specs. Also point to new geronimo-staging-017 to pickup latest spec releases under vote with updated notices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 15:19:10 +00:00
Donald Woods 02471ca7e7 OPENJPA-1229 Reworked Persistence.createEMF() exception handling in the geronimo-jpa2 spec api (PFD2), which wraps all exceptions in a PersistenceException and can now return multiple provider exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820440 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 20:49:09 +00:00
Pinaki Poddar 7d6ccb108c OPENJPA-1050: Use generics for Filters
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819801 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:39 +00:00
Pinaki Poddar baf800f3b0 OPENJPA-1050: Use generics for BrokerFactory
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819800 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:32 +00:00
Pinaki Poddar 9f24d10ecd OPENJPA-1050: Use generics for DataCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819771 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 23:51:33 +00:00
Michael Dick f1af41c44c OPENJPA-1298:
Remove WriteBehindCallbackManager which 'shared' a single callback with multiple EMFs unintentionally

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817679 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 14:45:26 +00:00
Richard G. Curtis 4378977891 OPENJPA-250: Committing to trunk. Submitted by Patrick Linskey, Simon Droscher, and Rick Curtis.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817429 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 21:59:21 +00:00
Fay Wang cf7f69bbd5 OPENJPA-1253: support non-default One-To-Many mappings
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816795 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 21:53:47 +00:00
Michael Dick 1c4a61758a OPENJPA-1305:
Broker used by the WriteBehindCallback should be considered unmanaged.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816275 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 16:52:28 +00:00
Fay Wang 8c1e1a7ea5 OPENJPA-1253: support non-default uni-directional OneToMany using foreign key strategy, using JoinColumn annotation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 07:49:13 +00:00
Fay Wang 72f2cb8516 OPENJPA-1253: allow JoinColumn in conjunction with OneToMany annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815988 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 22:13:26 +00:00
Fay Wang 1e77f6a3e1 OPENJPA-1286: default isAbstractMappingUniDirectional to false
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814037 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 21:24:12 +00:00
Fay Wang eb5baa42a2 OPENJPA-1286: use Compatibility to check if the relationship defined in the MappedSuperclass must be uni-directional.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813605 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:50:08 +00:00
Kevin W. Sutter dac8af35b4 OPENJPA-1260. Committing this change for Ravi Palacherla. Mike had previously reviewed the patch for correctness. Ravi changed the patch slightly and re-submitted. Based on a request from the mailing list, I reviewed Ravi's second patch and am committing the changes with a couple of minor modifications. I updated the comments slightly to make sentences. And, I moved the testcases to the "generationtype" package to be with similar testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813597 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:35:57 +00:00
Fay Wang d2cc5e0360 OPENJPA-1286: Relationships in mapped superclass must be unidirectional
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811212 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 03:21:32 +00:00
Fay Wang 701221576d OPENJPA-1286: Relationships in mapped superclass must be unidirectional
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811211 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 03:20:19 +00:00
Catalina Wei c880fdeb7f OPENJPA-1287 Criteria query to generate 'optimize for 1 row' for DB2 if selection is an aggregate function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811159 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 22:34:08 +00:00
Michael Dick 69cf52f68d OPENJPA-1279:
Adding testcases and fixing cache exclusion logic in DataCacheStoreManager

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810197 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:48:09 +00:00
Michael Dick fdcbdccae0 OPENJPA-1271:
Remove @Override annotations which caused compile errors with JDK5

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808997 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 19:29:08 +00:00
Michael Dick 991cdcae7d OPENJPA-1271:
Enable CacheStoreMode and CacheRetrieveMode properties to be set for an EntityManager.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808981 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 18:25:08 +00:00
Michael Dick f06d862ec6 OPENJPA-386:
Handle abstract and non abstract MappedSuperClasses identically. 
Submitted By: Jody Grassel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808243 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 01:26:37 +00:00
Pinaki Poddar f6ae418aa5 OPENJPA-1267: JDBC Escape Syntax for temporal type data in Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808235 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 00:26:00 +00:00
Fay Wang 9177e9369a OPENJPA-1266: JDBC escape syntax for date, time, timestamp support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808198 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 22:01:25 +00:00
Pinaki Poddar f68c531a5b OPENJPA-1265: Support edit of Criteria Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808158 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 18:54:30 +00:00
Fay Wang e19c75a9c3 OPENJPA-1266: JDBC escape syntax for date, time, timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807851 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 23:22:59 +00:00
Michael Dick 8a66927c2d OPENJPA-1264:
Add trailing newlines - checkstyle

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807681 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:56:24 +00:00
Michael Dick 964ab657ce OPENJPA-1264:
Enable shared-cache-mode persistence.xml element. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807662 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:08:16 +00:00
Catalina Wei 388b18650f OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807446 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 01:19:32 +00:00
Catalina Wei 917b49befe OPENJPA-1261 JPQL query result shape for multi-selections including multi-select-new-constructor
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806993 13f79535-47bb-0310-9956-ffa450edef68
2009-08-23 17:47:06 +00:00
Michael Dick bb7048d27c OPENJPA-1200:
Discriminator column ignored for in select statement for OneToMany relationships.
Submitted By : Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806693 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 19:55:09 +00:00
Catalina Wei 2615a9b426 OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
Bulk update of embedded field is not allowed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806675 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 18:53:40 +00:00
Fay Wang 21d88cadc7 OPENJPA-1256: fix ClassCastExcepton when IdClass contains an ENUM type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 00:03:30 +00:00
Pinaki Poddar b11cdae338 Add error messages to FillStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805588 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 21:27:42 +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
Pinaki Poddar 814341420d OPENJPA-849, OPENJPA-1251: property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805565 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:20:26 +00:00
Michael Dick 49e554ac6c OPENJPA-1237:
Throw configuration exception for missing options when using WriteBehind. 
Submitted by : Tim McConnell

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 23:25:35 +00:00
Catalina Wei dc316323ba OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804419 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:32:59 +00:00
Michael Dick befee1a50b Specify type of collection on AbstBrokerFact.getOpenBrokers()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804330 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:18 +00:00
Pinaki Poddar a1e2f57eb9 Add a method to get the original expiration time from PCData.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804085 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 05:57:31 +00:00
Fay Wang ccfbe6cd31 OPENJPA-1185: check in embeddable in subquery support on behalf of Catalina
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:01:38 +00:00
Fay Wang a488a122cf OPENJPA-1242: fix cascade delete for 1-1 relation in an embeddable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803763 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 03:08:55 +00:00
Pinaki Poddar a445c1c4bd OPENJPA-687: add statsics while datacache is queried with contains()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803661 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:43:48 +00:00
Pinaki Poddar dc061e904f OPENJPA-1225:
Refactor FillStrategy out of ResultShape enum to a separate interface. 
Introduce CompoundSelections.MultiSelect
Use ObjectFactory for Tuple to save memory
Tune CriteriaExpressionBuilder to new result packing
Isolate ResultPacker (JPQL) from ResultShape (Criteria) completely 
Implement getSelection() for JPA 2.0

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802984 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 03:02:45 +00:00
Fay Wang 2b24b76a9c OPENJPA-1143: keys(map) and values(map) support for Criteria API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 21:32:52 +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 3b327b5fbb OPENJPA-1232:
Call toNestedFields for Map Keys as well as Map values.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802211 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:31:45 +00:00
Fay Wang a4a94f5331 OPENJPA-1226: fix merge entities with nested embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801052 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:56:41 +00:00
Pinaki Poddar baaec8148b OPENJPA-1225: Shape of Result for Criteria query. Draft.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:07:54 +00:00