Commit Graph

494 Commits

Author SHA1 Message Date
Michael Dick 7f7497dee3 OPENJPA-781 committing patch contributed by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@720521 13f79535-47bb-0310-9956-ffa450edef68
2008-11-25 16:10:02 +00:00
Kevin W. Sutter 68d48f948e OPENJPA-774. Committing the patch provided by Alexey Ousov in trunk and the 1.3.x branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719388 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 21:48:54 +00:00
Fay Wang bb937f3634 OPENJPA-742: add get lineNumber/ColumnNumber to SourceTracker
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719314 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 18:16:46 +00:00
Pinaki Poddar 9d40841d48 OPENJPA-340: Let DBDictionary generate Unique Constraint names rather than Unique trying to auto-generate such names in lesser scope. Strengthen the tests to have exactly same named unique columns in two classes to verify that the unique constraint names are unique across tables.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713778 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 18:33:07 +00:00
Michael Dick 02608cc658 OPENJPA-765 Check for isInsertable and isUpdatable in HandlerFieldStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712928 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 03:44:43 +00:00
Pinaki Poddar e11d0f7e12 Generate unique name for unique constraints created by @Column(unique=true)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712300 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 22:49:13 +00:00
Albert Lee ea9378fc96 OPENJPA-580 - Improve jdbc url mapping to DB dictionary alias.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711726 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 22:31:42 +00:00
Albert Lee f55dff2069 OPENJPA-761 - test for null column object and post a more meaning message to the warning log in SchemaGenerator.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711432 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:56:35 +00:00
Fay Wang 7e24608f52 OPENJPA-762: Batch execution fails for Oracle when batch
limit is set to -1.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711404 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:03:56 +00:00
Albert Lee 675ee18565 OPENJPA-760 - Commit contributions on behalf of Georgi Naplatanov.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710180 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 21:52:49 +00:00
A. Abram White 3cc3bfe87c Use full table name according to DBDictionary when constructing GetMapValue
subquery, which may include schema.



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710015 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 06:36:49 +00:00
Michael Dick e1bd3c4dcb Code cleanup: remove some unnescessary casts
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707937 13f79535-47bb-0310-9956-ffa450edef68
2008-10-26 04:31:28 +00:00
Michael Dick 284bd408f8 [maven-release-plugin] prepare release 1.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707728 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 19:19:49 +00:00
Jeremy Bauer 044764a395 OPENJPA-750: Updates to code and doc based on code review comments
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707655 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 15:24:21 +00:00
Jeremy Bauer c49f0e17d6 OPENJPA-750: Added option to Sybase dictionary to ignore truncation warnings, added doc for new dictionary option, and code to log any SQLWarnings when update count isn't expected value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707270 13f79535-47bb-0310-9956-ffa450edef68
2008-10-23 04:43:35 +00:00
Fay Wang 703a2b9b60 OPENJPA-745: streamline the fix to be consistent with the fix
in OPENJPA-750

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707214 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 22:12:37 +00:00
Fay Wang ac40fde3f1 OPENJPA-745: raise string right truncation error for Sybase. Move
the call to _dict.initializedSettings inside the block of 
checking whether _conn is null in JDBCStoreManager.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706494 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:11:41 +00:00
Fay Wang 1e4aa60859 OPENJPA-745 raise string right truncation error for Sybase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706493 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:03:26 +00:00
Catalina Wei 7131ef0748 OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
Further improved code and additional testcases.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@705335 13f79535-47bb-0310-9956-ffa450edef68
2008-10-16 19:37:02 +00:00
Catalina Wei 5128ee06a4 OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
Further improved for performance when OneToMany is fetch EAGER, the inverse ManyToOne relations are set such that relation fields in entities after detach remain valid.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@704585 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 17:22:39 +00:00
Catalina Wei 212ddcefc9 OPENJPA-744 OneToMany EAGER loading generates extra SQLs on inverse ManyToOne relation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@703912 13f79535-47bb-0310-9956-ffa450edef68
2008-10-13 04:37:48 +00:00
Fay Wang 050a99a3e4 OPENJPA-736 use jdbc api getGeneratedKey to combine insert
and select SQL for generated id strategy = GenerationType.IDENTITY.
Found some indentation problem and fixed it. No logic change.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701555 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 22:39:53 +00:00
Fay Wang e7867662bd OPENJPA-736 use jdbc api getGeneratedKey to combine insert
and select SQL for generated id strategy = GenerationType.IDENTITY

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701537 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 21:16:50 +00:00
Catalina Wei baa01d79dd OPENJPA-731 Bug on FetchType.EAGER when QuerySQLCache is turned on
Committing patch provided by Fay Wang

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@699156 13f79535-47bb-0310-9956-ffa450edef68
2008-09-26 03:05:52 +00:00
Catalina Wei a098b86d73 OPENJPA-720 The pushdown sql for version columns in primary and secondary tables has unpredictable ordering in the select and from clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@694057 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 23:06:36 +00:00
Kevin W. Sutter 8e6db6cb65 OPENJPA-715. Committing the testcase provided by Ekin Sokmen and the patch provided by Fay Wang. Committing the change for both the 1.2.x service stream and 1.3.0 snapshot (trunk).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@693282 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08 21:32:17 +00:00
Pinaki Poddar 939b122c09 OPENJPA-697: Join if version column is in secondary table
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@693162 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08 16:54:21 +00:00
Pinaki Poddar a60fab2d7e OPENJPA-710: Do not add ORDER BY clause for unordered collection field. But select the field as it is expecetd subsequently for loading.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@691421 13f79535-47bb-0310-9956-ffa450edef68
2008-09-02 23:07:22 +00:00
Catalina Wei 650161a887 OPENJPA-708 sub-sub-query generates SQL with syntax error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@690823 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31 23:53:36 +00:00
Pinaki Poddar aa1516f04b OPENJPA-697: Add new capabilities to support version columns to spread across primary and secondary tables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@690346 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 17:46:15 +00:00
Catalina Wei 15f6ece819 OPENJPA-706 Changes for supporting DB generated version
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@689649 13f79535-47bb-0310-9956-ffa450edef68
2008-08-27 22:53:28 +00:00
Pinaki Poddar 62c0cba64b OPENJPA-697: Implement newly added getJavaType(int i) abstarct method to save derivations unaware of multi-column versioning support from compiler error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@689219 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 20:51:30 +00:00
Pinaki Poddar 42f2f394fb OPENJPA-705: Secondary table for Embdded field is to be looked up in the owner's secondary table.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688919 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 23:28:31 +00:00
Pinaki Poddar f0126e921f OPENJPA-697: Upgrade version strategy for multiple numeric-valued columns to support @VersionColumns.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688734 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 14:25:36 +00:00
Catalina Wei 322689a573 OPENJPA-700 DB2 lastGeneratedKeyQuery should use new syntax for db2UDBV82OrLater
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688135 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 17:48:55 +00:00
Pinaki Poddar 4dd92231c5 Generate informative error message when query fails due to wrong unbound variables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@687122 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:42:26 +00:00
Albert Lee a7b9f8f7f3 Minor typo corrections in message files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686401 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 22:19:24 +00:00
Pinaki Poddar d76c646acc OPENJPA-111: Validate native SQL parameters by the numbers of parameters in StoreQuery level and bypass validation at facade layer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686349 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:38:10 +00:00
Pinaki Poddar aae1260665 OPENJPA-693: Support 1.5 directional mapping where Parent maps its Children but Child refers to Parent via Parent's primary key value. Introduces a concept of implicit ForeignKey that marks the shared mapped column without any database schema impact.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:52:16 +00:00
Catalina Wei f4845dae9b OPENJPA-679 java.lang.ArrayIndexOutOfBoundsException may occur when a relation field is annotated as a primary key and a foreign key
Commit patch provided by Fay Wang

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@685042 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 05:10:54 +00:00
Pinaki Poddar ffb59c35fc OPENJPA-692: Detect orphaning relation and change row update to delete for join table entry.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684822 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 17:18:31 +00:00
Pinaki Poddar 6dbe8a9e57 OPENJPA-692: Bi-directional mapping with JoinTable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684442 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 10:11:50 +00:00
Pinaki Poddar 237c092ebb OPENJPA-677: Make a judgement whether reading discrimnator value from the result makes sense in a context
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683916 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:59:12 +00:00
Pinaki Poddar 9ebfe800a5 OPENJPA-677: While loading intermediate data be more strict about when superclass oid can be allowed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683902 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:06:18 +00:00
Catalina Wei 053ad36618 OPENJPA-681 Subquery generates SQL with syntax error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683876 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 06:46:29 +00:00
Michael Dick b53a58f948 OPENJPA-676 remove extra bracket
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683304 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:45:08 +00:00
Michael Dick 62a6555c89 OPENJPA-676 remove extraneous cast
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683299 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:34:33 +00:00
Michael Dick ce3f368ab0 OPENJPA-676 close connection used for CONTIGUOUS or TRANSACTIONAL sequences
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683296 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:31:01 +00:00
Pinaki Poddar 3b00de3b26 OPENJPA-665: Check for null constraint on insert and update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682610 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 07:23:41 +00:00
Pinaki Poddar b683569de0 OPENJPA-485:
OPENJPA-497: Saving NPE

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 03:19:13 +00:00