Commit Graph

1439 Commits

Author SHA1 Message Date
Mark Struberg 4e59c48364 OPENJPA-2555 use a defaultFractionLength of 0 for backward compat
This is how the default of MySQL and the previous behaviour of OpenJPA did.
If a user want he can use either @Column(scale=n) or set it via DBDictionary:
openjpa.jdbc.DBDictionary=(defaultFractionLength=6)
2019-04-05 10:29:27 +02:00
Mark Struberg 14263ca52d OPENJPA-2775 improve JavaDoc for sub-second fractions 2019-04-02 22:53:17 +02:00
Mark Struberg 11cfff3f78 move to 3.1.0-SNAPSHOT as we upped the jpa-spec API to 2.2 2019-03-31 22:32:56 +02:00
Mark Struberg acf78d8091 OPENJPA-2713 fix wrong offset after daylight saving switched 2019-03-31 22:32:17 +02:00
Mark Struberg 53b946d9ca add deprecation info and clean up code
no functional change
2019-03-26 11:14:07 +01:00
Maxim Solodovnik cb20dd6b95
[OPENJPA-2777] Javax index (#39)
[OPENJPA-2777] javax.persistense.Index can be used on Table annotation
2019-03-05 20:44:49 +07:00
Mark Struberg 1690076b37 fix formatting and readability 2019-02-14 15:25:50 +01:00
Mark Struberg c1ae373a0f OPENJPA-2713 add java8 time api for SQLServer 2019-02-14 15:21:53 +01:00
Mark Struberg fa6ce77004 OPENJPA-2773 set dbcp defaults to align with commons dbcp
Especially the maxIdle=0 was problematic.
It effectively disables the whole pooling, which is counter productive.
2019-02-07 09:56:15 +01:00
Mark Struberg 037a2dc4c0 OPENJPA-2775 fix hsql metadata handling 2019-02-06 10:23:22 +01:00
Mark Struberg 11863ed932 OPENJPA-2772 update list of h2 resorved words 2019-02-02 13:48:22 +01:00
Mark Struberg af39516fc8 OPENJPA-2713 add java8 time support for h2 2019-02-02 13:04:15 +01:00
Mark Struberg 43aa42ccb5 OPENJPA-2771 fix h2 'unlimited' LIMIT case
With h2 one should omit the LIMIT section to get all results.
Our old LIMIT 0 did effectively prune the whole result list to zero entries.
2019-02-02 12:02:58 +01:00
Mark Struberg ad4ed02728 OPENJPA-2713 fix h2 2019-01-30 22:33:08 +01:00
Mark Struberg e82d1ec2fb OPENJPA-2713 remove left over in PostgresDictionary 2019-01-29 22:22:15 +01:00
Mark Struberg be62c5a123 OPENJPA-2713 add LocalDate support for Oracle DB
Oracle does still not support native LocalDate, etc in their JDBC driver.
So we have to treat it like the old datatypes.
2019-01-29 13:02:05 +01:00
Mark Struberg e908a9c293 formatting only 2019-01-28 13:01:16 +01:00
Mark Struberg fffc74f0a7 OPENJPA-2713 improve MariaDB Dictionary
Seems like MariaDB does still have quite a few problems in their JDBC driver.
I at least tried to iron out new functionality.
2019-01-28 13:00:05 +01:00
Mark Struberg 362474e5c9 OPENJPA-2713 add java8 time support for MySQL and MariaDB 2019-01-25 21:37:16 +01:00
Mark Struberg 6d2544f390 OPENJPA-2713 properly handle WITH TIME ZONE if supported by db
This includes handling the  new java.sql.Types.TIME_WITH_ZONE
and DATE_WITH_ZONE.
2019-01-25 16:42:15 +01:00
Mark Struberg dbfb360e85 OPENJPA-2713 add OffsetTime support
Works, but something is a bit fishy still.
2019-01-22 22:07:32 +01:00
Mark Struberg e57fd518b3 OPENJPA-2713 implement native java8 types
Since some DBs (e.g. PostgreSQL) do support LocalDate, etc
in their JDBC drivers, it's probably the best to support it
on a way deeper level.
2019-01-20 23:51:10 +01:00
Mark Struberg 89335fd48c OPENJPA-2713 add support for java.time.LocalDate
plus some cleanup
2019-01-20 14:49:20 +01:00
Mark Struberg aae0a95f6c OPENJPA-2761 properly handle javax.sql.Types.SQLXML 2019-01-10 13:29:49 +01:00
Mark Struberg bb6bad0702 OPENJPA-2753 add a profile for Oracle as Docker image
-Ptest-oracle-docker
as new profile to start Oracle 11_XE
2019-01-06 23:43:41 +01:00
Mark Struberg 6afab6486a OPENJPA-2754 re-enable dbcp2 auto detection 2019-01-03 00:13:59 +01:00
Maxim Solodovnik d874cbf6d3
[OPENJPA-2754] maxActive -> maxTotal (#24)
* [OPENJPA-2754] maxActive -> maxTotal

* commons-pool2 and commons-dbcp2 versions are updated, setMaxActive is deprecated with warn being logged

* DBCPDriverDataSource and AutoDriverDataSource are removed

* BasicDataSource is being loaded in case jdbc.DriverDataSource is set to 'dbcp'

* Normal call is replaced with reflection
2018-11-16 13:48:40 +07:00
Mark Struberg db6f6b6422 OPENJPA-2756 escape search strings for all Postgres versions
Can be disabled via config by explicitly setting the
DBDictionary to requiresSearchStringEscapeForLike=false
via persistence.xml for example.
2018-11-10 20:47:09 +01:00
Mark Struberg 0530b5b72b OPENJPA-2755 OPENJPA-2555 support fractions of a second
For now just in MySQL. Should also get added to PostgreSQL.
Txs also to Ancoron Luciferis for a patch which also
gave some important input!
2018-11-01 21:06:41 +01:00
Mark Struberg 3b4c2e6f42 OPENJPA-2755 OPENJPA-2555 use scale to set Date fractions 2018-11-01 14:20:49 +01:00
Mark Struberg 9461ffdfcd OPENJPA-2775 OPENJPA-2555 fraction of seconds in MySQL
This is a first fix for supporting fractions of a second in MySQL.
2018-10-31 20:51:31 +01:00
Mark Struberg 73582cc780 move tests to junit4 style 2018-10-22 13:25:07 +02:00
Maxim Solodovnik 9a5096308c [OPENJPA-2752] libraries are updated to most recent versions 2018-10-18 12:38:31 +07:00
Maxim Solodovnik e25438a174 [OPENJPA-2751] imports, @Overrides and @Deprecated are organized, redundant type arguments and unnecessary casts are removed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1842686 13f79535-47bb-0310-9956-ffa450edef68
2018-10-03 08:11:59 +00:00
Maxim Solodovnik f2fc98031e [OPENJPA-2751] trailing white-spaces were removed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1842614 13f79535-47bb-0310-9956-ffa450edef68
2018-10-02 12:32:32 +00:00
Maxim Solodovnik 4709f38ba2 [OPENJPA-2748] commons-collection is updated to most recent version
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1841941 13f79535-47bb-0310-9956-ffa450edef68
2018-09-25 15:16:54 +00:00
Francesco Chicchiriccò f399f912cf [OPENJPA-2750] Commons dbcp is updated to latest version - thx @solomax - This closes #22
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1841800 13f79535-47bb-0310-9956-ffa450edef68
2018-09-24 06:41:20 +00:00
Francesco Chicchiriccò 9a98d6a2bf [OPENJPA-2567] various MySql and MariaDB text types support is added - thanks @solomax - This closes #18
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1839940 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 11:41:07 +00:00
Will Dazey c79c09ac39 OPENJPA-2745: Clean up try-catch implementation for DB2Dictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1837662 13f79535-47bb-0310-9956-ffa450edef68
2018-08-08 16:59:04 +00:00
Will Dazey 4477ace6fd OPENJPA-2704: The openjpa.jdbc.Schema no longer overrides orm.xml default
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1834900 13f79535-47bb-0310-9956-ffa450edef68
2018-07-02 21:07:29 +00:00
Francesco Chicchiriccò 0303fb28f8 [OPENPJA-2742] Rollback before DDL can be disabled - default behavior is kept
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1834818 13f79535-47bb-0310-9956-ffa450edef68
2018-07-02 06:06:45 +00:00
Mark Struberg ffe3fe4a50 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1833210 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:34:53 +00:00
Mark Struberg 101ee9946a [maven-release-plugin] prepare release openjpa-parent-3.0.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1833208 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:34:24 +00:00
Will Dazey 8be86a6903 OPENJPA-2646: Sporadic NullPointerException and ClassCastException caused by query cache misses in multithreaded environments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1831596 13f79535-47bb-0310-9956-ffa450edef68
2018-05-14 22:25:05 +00:00
Francesco Chicchiriccò 778e8e9449 [OPENJPA-2598] Applying provided patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1806888 13f79535-47bb-0310-9956-ffa450edef68
2017-09-01 06:38:48 +00:00
Jody Grassel 5c94a7ff67 OPENJPA-2705: ArrayOutOfBoundsException occurs with an @EmbeddedId (commit on wdazeys behalf)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1802529 13f79535-47bb-0310-9956-ffa450edef68
2017-07-20 20:11:40 +00:00
Christian Schneider 49c1478cf3 [OPENJPA-2690] Update OSGi Import-Package to support Oracle CLOB/BLOB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1786518 13f79535-47bb-0310-9956-ffa450edef68
2017-03-11 18:20:01 +00:00
Mark Struberg 8567a5e5c2 OPENJPA-2689 prevent IllegalArgumentException with package scoped OraclePreparedStatementWrapper classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1784577 13f79535-47bb-0310-9956-ffa450edef68
2017-02-27 15:00:22 +00:00
Romain Manni-Bucau af8ea38f87 OPENJPA-2554 JPA 2.1 - Schema Generation, patch from Roberto Cortez, doc to update still
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1770509 13f79535-47bb-0310-9956-ffa450edef68
2016-11-19 18:08:44 +00:00
Mark Struberg bdc1da9423 OPENJPA use Locale.ENGLISH for toLowerCase and toUperCase where possible
* we now use fixed english Locale for 'framework parts' which are by spec portable
* we do NOT yet use a fixed Locale for anything related to column or table names!

txs to Kaloyan Spiridonov for the catch!



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1768216 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 13:46:23 +00:00
Mark Struberg 02330ad212 OPENJPA-2665 move to StringBuilder to improve performance
Only locally used StringBuffer, so guaranteed no concurrency.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759947 13f79535-47bb-0310-9956-ffa450edef68
2016-09-09 08:04:41 +00:00
Mark Struberg 9cacf08c7a OPENJPA-2662 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759916 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 22:03:41 +00:00
Mark Struberg f0286a268e OPENJPA-2665 refactor StringUtils
We now got rid of commons-lang. Makes 400kB less dependencies 
And guaranteed no classpath conflicts.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759663 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 19:04:18 +00:00
Mark Struberg f979ae1cfe OPENJPA-2665 use Objects.equals instead of prorietary impl
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759614 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 13:55:30 +00:00
Mark Struberg 209adb6fc8 OPENJPA-2662 remove serp.util.Strings.getPackageName
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759356 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 21:11:01 +00:00
Mark Struberg 297190a43a OPENJPA-2662 reimplement serp.util.Strings#getClassName
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759355 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 20:35:11 +00:00
Mark Struberg da6ea0f708 OPENJPA-2662 get rid of serp.util.Strings#replace
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759273 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 14:10:33 +00:00
Mark Struberg 66ad16fd85 OPENJPA-2662 remove serp.util.Strings#split
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759033 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 20:23:32 +00:00
Mark Struberg e647db2ee0 OPENJPA-2662 intern Strings.toClass
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1758851 13f79535-47bb-0310-9956-ffa450edef68
2016-09-01 20:20:11 +00:00
Mark Struberg 305758fc96 OPENJPA-2664 move to commons-lang3
And also clean up ancient code parts.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1758808 13f79535-47bb-0310-9956-ffa450edef68
2016-09-01 16:27:51 +00:00
Mark Struberg 0859873510 PWB-2663 remove factually unused ConcreteClassGenerator
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1758685 13f79535-47bb-0310-9956-ffa450edef68
2016-08-31 22:02:14 +00:00
Mark Struberg 64e9f3868f OPENJPA-2592 OPENJPA-2654 merge JPA-2.1 work originally done by rmannibucau in the openjpa-jpa-2.1 branch
Thanks to Romain for all the hard work!


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756850 13f79535-47bb-0310-9956-ffa450edef68
2016-08-18 20:47:20 +00:00
Mark Struberg 41febbaab0 OPENJPA-2652 transition trunk to OpenJPA-3.0.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756771 13f79535-47bb-0310-9956-ffa450edef68
2016-08-18 12:44:03 +00:00
Heath Thomann 68fea1a51c OPENJPA-2650: When SchemaFactory and useSchemaName=false is set, a schema name is incorrectly used. Merged 2.2.x commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756539 13f79535-47bb-0310-9956-ffa450edef68
2016-08-16 18:08:54 +00:00
Heath Thomann 4afdb07042 OPENJPA-2651: Fix for issue where @SqlResultSetMapping is used with inheritance and a ManyToOne relationship. Merged 2.2.x commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756047 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 20:43:27 +00:00
Heath Thomann 41827d794d OPENJPA-2631: Fix for CriteriaBuilder issue with an @EmbeddedId that contains more than one field. Ported 2.1.x commit to trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1750038 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 03:32:58 +00:00
Francesco Chicchiriccò 0ac7140b82 [OPENJPA-2640] Applying provided patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1743607 13f79535-47bb-0310-9956-ffa450edef68
2016-05-13 06:49:59 +00:00
Mark Struberg 55e8a82558 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1730419 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 22:23:47 +00:00
Mark Struberg c3d950747a [maven-release-plugin] prepare release 2.4.1
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1730417 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 22:22:38 +00:00
asf-sync-process 7aed5ecf48 [maven-release-plugin] rollback the release of 2.4.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1730401 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 20:48:55 +00:00
Mark Struberg 3396a59061 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1730341 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 14:02:04 +00:00
Mark Struberg d7bcf2670e [maven-release-plugin] prepare release 2.4.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1730338 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 14:00:52 +00:00
Heath Thomann 285e4688c3 OPENJPA-2627: Create an option to disable column type checking errors during schema validation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1728039 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 03:54:33 +00:00
Heath Thomann 28da3eaccf OPENJPA-2609: Sporadic ClassCastException occurs under heavy load when QuerySQLCache is enabled. Merged 2.1.x changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1709312 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 19:52:10 +00:00
asf-sync-process 977ba12bfa OPENJPA-2603: Merging an unmanaged entity multiple (3) times leads to an exception. Merged 2.1.x changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1709205 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 18:37:39 +00:00
Mark Struberg 2353455a48 OPENJPA-2602 replace ongoing Class.forName with 1x lookup to improve performance and minimize locks
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1701372 13f79535-47bb-0310-9956-ffa450edef68
2015-09-05 11:33:25 +00:00
Heath Thomann 104fce25c2 OPENJPA-2517: Option to allow the javax.persistence.query.timeout property to apply to EntityManager operations. Ported 2.2.x changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1700885 13f79535-47bb-0310-9956-ffa450edef68
2015-09-02 20:06:41 +00:00
Mark Struberg f6ba63def5 OPENJPA-2341 fix ValueHandler pickup via FieldStrategies
Sadly this atm only works for fields which are Serializable. 
Menas the ValueHandler can just change the presentation right now
but it doesn't work for mapping non-Serializable classes like
java.security.Principal.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1688947 13f79535-47bb-0310-9956-ffa450edef68
2015-07-03 06:08:44 +00:00
Romain Manni-Bucau 72be5f1720 OPENJPA-2597 DECIMAL and NUMERIC needs scale configuration for hsqldb
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1688082 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 04:25:16 +00:00
Mark Struberg ea1682c425 OPENJPA-2596 schema-delta generation (sqlAction=refresh) drops columns if they have an alternative typeName
solved by additionally comparing the final column definition end to end


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683992 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 06:50:58 +00:00
Romain Manni-Bucau fac15cf557 OPENJPA-2592 basic stored procedure impl import
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/openjpa_jpa-2.1@1683972 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 01:05:22 +00:00
Mark Struberg 4b3cf47855 remove IDE generated noise
especially if most of the methods actually got implemented already...


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683239 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 06:32:03 +00:00
Mark Struberg 0b26209a2f OPENJPA-2595 upgrade our test suite to junit-4
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683154 13f79535-47bb-0310-9956-ffa450edef68
2015-06-02 18:04:26 +00:00
Mark Struberg e918d4d0e5 OPENJPA-2581 we need to switch back to going to the DB otherwise we don't get FKs generated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683151 13f79535-47bb-0310-9956-ffa450edef68
2015-06-02 17:54:52 +00:00
Mark Struberg bf22072d43 OPENJPA-2581 add MappingTool option to create DROP scripts for all tables in a DB.
Thanks sreiterer for the patch!
Stefan will provide further integration tests tomorrow.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1677780 13f79535-47bb-0310-9956-ffa450edef68
2015-05-05 10:48:04 +00:00
Jody Grassel 419a8afa9a OPENJPA-2570: Allow an informix user the option to disable the RETAINUPDATELOCKS sql
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1675495 13f79535-47bb-0310-9956-ffa450edef68
2015-04-22 20:35:18 +00:00
Mark Struberg 5235008137 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1674605 13f79535-47bb-0310-9956-ffa450edef68
2015-04-19 11:22:11 +00:00
Mark Struberg 0c0c8dd2bf [maven-release-plugin] prepare release openjpa-parent-2.4.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1674603 13f79535-47bb-0310-9956-ffa450edef68
2015-04-19 11:20:57 +00:00
Heath Thomann 7b1c24e1fa OPENJPA-2571: Criteria Builder query generates extra alias when using multiselect.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1673513 13f79535-47bb-0310-9956-ffa450edef68
2015-04-14 18:59:29 +00:00
Jody Grassel a4ae8a61e1 OPENJPA-2570: Allow an informix user the option to disable the RETAINUPDATELOCKS sql
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1672487 13f79535-47bb-0310-9956-ffa450edef68
2015-04-09 20:53:51 +00:00
Mark Struberg 85556cb9ea OPENJPA-2576 remove @nonjava which is actually not a javadoc tag
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671792 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 10:37:14 +00:00
Mark Struberg f1ad383f4f remove empty @return javadocs
just caused javadoc warnings...


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671694 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:57:11 +00:00
Mark Struberg d13ffa5eb3 OPENJPA-2335 only handle key columns very restrictive
There is no reason to forbid updates to other Columns like OrderColumn, etc
Ported over from 2.3.x


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1667136 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 21:45:43 +00:00
Mark Struberg 3b49efddcc remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1667123 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 20:34:29 +00:00
Heath Thomann 09270f6fe4 OPENJPA-2570: Allow an Informix user the option to disable the 'RETAINUPDATELOCKS' SQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1666314 13f79535-47bb-0310-9956-ffa450edef68
2015-03-12 21:40:37 +00:00
Heath Thomann 6591d4d464 OPENJPA-2557: FinderCache contains incorrectly cached query with a NULL for a Primary Key.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1662615 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 01:44:09 +00:00
Mark Struberg 244e37b189 OPENJPA-2558 add proper logging for BooleanRepresentation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1654485 13f79535-47bb-0310-9956-ffa450edef68
2015-01-24 09:24:57 +00:00
Mark Struberg 8c6b968190 OPENJPA-2558 add getRepresentation to allow BooleanRepresentation be used in SQLBuffer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1654352 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 19:56:22 +00:00
Mark Struberg c5e4fac841 OPENJPA-2558 implement BooleanRepresentation which can be switched via config
Each DBDictionary has it's own default BooleanRepresentation but can easily get changed by the user
e.g. via
<property name="openjpa.jdbc.DBDictionary"
    value="(BitTypeName=CHAR(1),BooleanTypeName=CHAR(1),BooleanRepresentation=STRING_10)"/>


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1652761 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 14:30:44 +00:00
Heath Thomann 4ca9dbd741 OPENJPA-2547: When two threads attempt to get a Pessimistic Lock, one thread gets a 'false' lock. Applied fix to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1651847 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 21:56:22 +00:00
Mark Struberg 69f3a6e1c9 OPENJPA-2534 cleanup DBDictionary alias handling
use class.getName() to prevent typos - no functional change yet.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1650957 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 19:52:59 +00:00
Heath Thomann b659ac2578 OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - applied Rick's patch to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1636474 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 23:48:24 +00:00
Jody Grassel 4540f82216 OPENJPA-1988: openjpa does not process persistence unit default <cascade-persist>
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1636415 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 18:40:59 +00:00
Jody Grassel 319bb37fe1 OPENJPA-2525: Use of JoinColumn targets to another joinColumn key exposed as an attribute will cause a ConstrainViolation exception on persist
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1627091 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 17:03:48 +00:00
Heath Thomann 077ad2b446 OPENJPA-2494: A default Schema defined in a PU default (<persistence-unit-defaults>) in an orm.xml file is not being honored.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1626916 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 23:06:18 +00:00
Albert Lee 3eaaa0c4b2 OPENJPA-2516 - Aggregate connection property for Driver.connect
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1610313 13f79535-47bb-0310-9956-ffa450edef68
2014-07-13 22:38:03 +00:00
Heath Thomann 3f33d76a34 OPENJPA-2476: Fixed OptimisticLockEx due to rounding of a Timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1591541 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 03:24:11 +00:00
Heath Thomann 833031ba61 OPENJPA-2286: ArgumentException: Attempt to compare incompatible types class java.util.Date and class org.apache.openjpa.jdbc.sql.Raw
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1580972 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 18:26:36 +00:00
Heath Thomann 873daf3531 OPENJPA-2475: A query with LEFT FETCH JOIN returns incorrect results - applied fix to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1580432 13f79535-47bb-0310-9956-ffa450edef68
2014-03-23 02:38:08 +00:00
Richard G. Curtis 51e2b70be5 OPENJPA-2482: Cache column alias on colum+pathjoins rather than just column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1576505 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 21:12:12 +00:00
Richard G. Curtis 48eaa1aef1 OPENJPA-2022 : Minor change to SchemaGenerator. Patch contributed by Jason Zwolak.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1569106 13f79535-47bb-0310-9956-ffa450edef68
2014-02-17 20:38:48 +00:00
Heath Thomann d802d74930 OPENJPA-2453: Add support to retain milliseconds of 'un-rounded' Date field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1566872 13f79535-47bb-0310-9956-ffa450edef68
2014-02-10 23:55:57 +00:00
Jody Grassel bcf46e516c OPENJPA-2423: Added null-check to DB2Dictionary update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564537 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 22:23:09 +00:00
Jody Grassel 4e8732d4ae OPENJPA-2450: Option to disable execution of ALTER SEQUENCE...INCREMENT BY statement for sequences.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564080 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 21:48:45 +00:00
Richard G. Curtis d4425f5799 OPENJPA-2466: Fix checkstyle problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1550731 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 14:03:11 +00:00
Richard G. Curtis 7c0c4a0a30 OPENJPA-2466: Update ReverseMappingTool to optionally write generated class to a String.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1550626 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 03:26:06 +00:00
Heath Thomann 28cad3351c OPENJPA-2449: refresh(PESSIMISTIC_WRITE) generates seperate SQL for the lock - applied to trunk Albert Lee's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1539200 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 23:47:16 +00:00
Mark Struberg 08035c10ef OPENJPA-2200 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536637 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 10:11:46 +00:00
Mark Struberg 092e70e0ac OPENJPA-2018 fix handling of Arrays in Select IN statements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536439 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 17:43:21 +00:00
Mark Struberg 70f1188d19 release preparation upgrade trunk to 2.4.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535565 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 21:39:43 +00:00
Mark Struberg a76249e143 OPENJPA-2440 close connection after not using it anymore
this prevents leaks like the one reported by rmannibucau.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1533641 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:28:57 +00:00
Heath Thomann 83dab92168 OPENJPA-2435: Version field in a projection always returned as an Integer. Merged 2.1.x changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1533289 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 23:28:31 +00:00
Heath Thomann bb743b5f15 OPENJPA-2343: Version field returns null when explicity projected from a JOIN in SELECT clause - based fix off of patch provided by Howard Kelsey. Merged 2.2.x commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1533227 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 19:46:14 +00:00
Jody Grassel dc36e9ae8f OPENJPA-2438: EmbedFieldStrategy.containsEmbeddedResult() optimization fails under certain native sql query conditions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1533094 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 14:48:16 +00:00
Mark Struberg 35c91eef22 OPENJPA-2221 AbstractValueHandler map() fix applied to trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1533047 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 11:04:35 +00:00
Jody Grassel 70ccfae92f OPENJPA-2433: Queries with a sort clause returns fewer entries than the same query that does not have a sort clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1532909 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 21:06:27 +00:00
Jody Grassel c8e3d5dcbb OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1532882 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 20:12:10 +00:00
Heath Thomann 3b94663fe2 OPENJPA-2425: SELECT fields with @ExternalValues defined returns datastore values instead of unmapped fields - applied Albert Lee's patch to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1530368 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 17:35:57 +00:00
Jody Grassel a3fccb40e3 OPENJPA-2432: MySQL dictionary can't be found from a valid connection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1526968 13f79535-47bb-0310-9956-ffa450edef68
2013-09-27 16:05:01 +00:00
Jeremy Bauer 9f8a682a03 OPENJPA-2366 Committing code and unit tests contributed by Austin Dorenkamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1519550 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 04:18:09 +00:00
Heath Thomann 7a9815a15f OPENJPA-2423: Isolation level is not working properly on DB2 for JPQL queries with nested sub-queries - committed to trunk the patch/fix provided by Pinaki Poddar.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1517843 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:06:13 +00:00
Jody Grassel ee6f4acc3f OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1516853 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:11:17 +00:00
Heath Thomann 0aed173d4f OPENJPA-2376: Escape character in JPQL with parameter substitution generates incorrect SQL - committed a patch sent to me by Albert Lee - merged changes from 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1513276 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 22:02:58 +00:00
Heath Thomann f63e792243 OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name. Made update to ensure schema is used after length is calculated.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1508188 13f79535-47bb-0310-9956-ffa450edef68
2013-07-29 19:27:27 +00:00
Jeremy Bauer ca76712e38 OPENJPA-1794 aggregate function with no result set must return null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1506198 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 18:26:42 +00:00
Jody Grassel 92c4369aa1 OPENJPA-2400: MariaDB DBDictionaryFactory update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504985 13f79535-47bb-0310-9956-ffa450edef68
2013-07-19 19:58:36 +00:00
Heath Thomann e384913eae OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504721 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:32:10 +00:00
Richard G. Curtis 4cf336fd95 OPENJPA-2410 : Detect SystemOut/Err in code at build time. Patch submitted by Di Wu Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504673 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 21:34:23 +00:00
Jody Grassel 1b1b60c9a7 OPENJPA-2400: MariaDB support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1501805 13f79535-47bb-0310-9956-ffa450edef68
2013-07-10 15:43:18 +00:00
Albert Lee a30d93f5c8 OPENJPA-2356 Database specific adjustments for previous patch. Contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1501256 13f79535-47bb-0310-9956-ffa450edef68
2013-07-09 13:25:21 +00:00
Albert Lee c7b4e05b1e OPENJPA-2391 - commit patch contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1496128 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 17:23:56 +00:00
Albert Lee 123e28821e OPENJPA-2390 - commit patch contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1496124 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 17:05:05 +00:00
Pinaki Poddar fa122cdfae OPENJPA-2373: special processing path for MapsId with auto-generated identity
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1469649 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 00:55:11 +00:00
Pinaki Poddar 34b223fa67 OPENJPA-2373: Add toString() for debugging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1469646 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 00:12:35 +00:00
Pinaki Poddar 3d11895269 OPENJPA-2365: Support for delete-by-query. Correction for hint processing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1464082 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 15:51:52 +00:00
Pinaki Poddar 6adc2f465f OPENJPA-2356: Use FETCH OFFSET/NEXT and ROWNUM support for DB2 familiy of databases for Range queries
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1459918 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 18:22:38 +00:00
Richard G. Curtis fd5cc0436c OPENJPA-2328: Fix NoSuchElementException when using HandlerRelationMapTableFieldStrategy. Patch contributed by Guillaume Chauvet.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447955 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 22:54:35 +00:00
Pinaki Poddar 4fbf3fc1f0 OPENJPA-2336: Consider database dictionary schema case while matching join column name
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447945 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 22:30:34 +00:00
Pinaki Poddar 7ce7e55620 OPENJPA-2335: Set non-default value to a foreign key contrained column
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447906 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 20:33:15 +00:00
Albert Lee 05b41094b8 OPENJPA-2332 - Update "no-driver" message content for clarity.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1446687 13f79535-47bb-0310-9956-ffa450edef68
2013-02-15 16:57:26 +00:00