Commit Graph

1383 Commits

Author SHA1 Message Date
Dmitry Geraskov eaa18d286b HHH-7711 Generate ddl to file even if scriptToConsole and
exportToDatabase are
set to false
2012-10-23 18:40:39 -04:00
brmeyer b6763565e4 HHH-7693 Formatting and duplicate code 2012-10-22 13:34:49 -04:00
Bryan Turner 0916baf2f8 HHH-7692 Use Postgres82Dialect for 9 and 9.1. 2012-10-22 13:32:57 -04:00
Bryan Turner 0695e22d41 HHH-7693 Use SQLServer2008Dialect for 2012. 2012-10-22 13:30:15 -04:00
brmeyer 47972c92e6 HHH-7698: In efficient LOB creations backed by streams
https://hibernate.onjira.com/browse/HHH-7698
2012-10-19 17:29:00 -04:00
Steve Ebersole d118c24776 HHH-7698 - In efficient LOB creations backed by streams 2012-10-19 17:28:46 -04:00
Galder Zamarreño e5d3b2b34c HHH-7640 Improve single node Infinispan 2LC performance
* Use an Infinispan cache to maintain pending puts, which avoids
the need to control it's memory consumption in the critical path
of putFromLoad.
* This cache is shared by all regions, and it's configured with
aggressive expiration settings to avoid piling up pending put
operations.
* Added a 2LC stress test that tests behaivour and performance
of 2LC under multiple situations, such as entity inserts, updates,
find via PK, find via query and deletes.
* Some other minor performance enhancements, such as avoiding
classloader aware cache wrapper if using 2LC locally.
* Remove cache adapter to reduce construction of useless objects.
* Cache flagged caches in order to avoid recomputing decorated
caches all the time, which reduces memory consumption.
* Skip locking for timestamp updates and separate timestamp region
implementations for local vs clustered scenarios.
2012-10-18 15:47:29 +02:00
brmeyer aeb48af15d HHH-7674 DB locks not cleared on
LazyLoadingTest#testLazyCollectionLoadingWithClearedSession
2012-10-10 22:03:09 -04:00
Steve Ebersole 3078cfa43f HHH-7683 - Optimize performance of AbstractLazyInitializer.prepareForPossibleSpecialSpecjInitialization()
(cherry picked from commit c9fd71fe57)
2012-10-10 13:22:39 -05:00
brmeyer c5a7916010 HHH-6655 trim function on DB2 is broken 2012-10-09 11:51:27 -04:00
brmeyer b130e7e430 HHH-4459 Query with Composite Primary Key parameter crashes when query
cache is on
2012-10-08 22:26:00 -04:00
Steve Ebersole 95bc0194ec HHH-5209 - org.hibernate.hql.ast.QuerySyntaxException when running a JPQL query with a MEMBER OF on an @ElementCollection
(cherry picked from commit 199ee7860e)
2012-10-03 08:21:09 -05:00
Brett Meyer 13ed16a114 Revert "HHH-4098 VARBINARY should be BLOB in DB2400Dialect"
This reverts commit 6a741706a3.
2012-09-27 11:30:30 -04:00
brmeyer 6a741706a3 HHH-4098 VARBINARY should be BLOB in DB2400Dialect 2012-09-26 21:34:55 -04:00
brmeyer 0fbf7202c0 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-26 17:34:23 -04:00
Oleh Faizulin 59453919c7 HHH-7644 Correct memory leak 2012-09-26 15:48:18 -04:00
brmeyer 90a3859c27 HHH-6043 PostLoad method invoked before collection initialised 2012-09-26 00:24:49 -04:00
brmeyer 64ef9bcfc4 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-24 12:20:50 -04:00
Sanne Grinovero 703c8358db HHH-7633 Cache System#identity for IdentityMap reuse 2012-09-21 15:05:29 +02:00
Steve Ebersole 839334db31 HHH-7631 - Improve performance of UpdateTimestampsCache
(cherry picked from commit f85e9247e9)
2012-09-21 07:04:21 -05:00
Shawn Clowater 807578ed18 HHH-7603 Changed AbstractPersistentCollection so that it would behave in a similar manner as 4.1.6 when using the default lazy load behavior for collections. With the changes for HHH-7603 the AbstractPersistentCollection was throwing a NPE instead of a LIE in a very particular case.
Added test that simulates a use case from Hibernate Search 4.1.1 as far as I can tell.
2012-09-20 01:53:22 -04:00
Ivan Sopov fc1637f816 fix for HHH-7487 org.hibernate.type.EnumType incorrectly logs binded values, trace logging was done as it is done in BasicBinder with the String.format 2012-09-20 01:41:12 -04:00
brmeyer 2113039a22 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-20 01:24:26 -04:00
Sergiu Dumitriu 4ecd795be4 HHH-7541: When using HSQLDB, inserting any CLOB value larger than 16Mb always fails with an exception
Fixed.
2012-09-19 10:30:41 -04:00
brmeyer 3518055f7b HHH-7309 Natural-id not cached in shared cache after insert 2012-09-19 08:42:07 -04:00
Guenther Demetz e644e45367 HHH-7309 bug-fix 2012-09-19 08:42:01 -04:00
Guenther Demetz d74fa1573b HHH-7309 testcase 2012-09-19 08:41:51 -04:00
brmeyer f3899eabc2 HHH-7569 Correct test-only failures in hibernate-core-master-matrix CI
job
2012-09-19 05:29:42 -04:00
brmeyer 45f2d91a2a HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-19 04:22:50 -04:00
brmeyer 6269121718 HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-18 01:44:05 -04:00
brmeyer c0043e1ee9 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-18 01:43:53 -04:00
brmeyer 141d21d878 HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-17 06:01:45 -04:00
brmeyer 419d76b17f HHH-6452 PostgreSQL Dialect does not fully implement NOWAIT locking 2012-09-17 03:56:48 -04:00
Gail Badner 1871e9336e HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity
(cherry picked from commit 3a72b45325)
2012-09-13 13:33:25 -07:00
Gail Badner 608f6a2a11 HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity
(cherry picked from commit 8eb7d8cf64)
2012-09-13 13:33:24 -07:00
Gail Badner 9953644cdf HHH-1283 : Added tests that reproduce the issue
(cherry picked from commit cb1069a3d3)
2012-09-13 13:33:24 -07:00
brmeyer b48a5ddfba HHH-7586 Re-architect Type or TypeFactory dynamic descriptors 2012-09-12 10:27:35 -04:00
brmeyer b9aeb998a7 HHH-7586 Re-architect SimpleValue's reflection for dynamic descriptors 2012-09-12 10:18:22 -04:00
brmeyer 95047afc63 HHH-7584 Sybase dialects attempting to use BLOB types 2012-09-12 10:16:51 -04:00
brmeyer 3d356c2800 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-12 10:14:23 -04:00
brmeyer 501b5d0a0b HHH-7569 Turned down AST logging due to stackoverflow 2012-09-12 10:13:32 -04:00
brmeyer daa01df922 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-12 10:13:21 -04:00
brmeyer 1cc3a9ffeb HHH-7579 Oracle does not support "unique not null" 2012-09-12 10:10:47 -04:00
brmeyer aa068fb264 HHH-5376 Tests contain invalid SQL 2012-09-12 10:10:38 -04:00
brmeyer 992e1387ef HHH-7578 Sybase does not support "unique not null" 2012-09-12 10:10:11 -04:00
brmeyer 3f34271a57 HHH-7577 Dialect's supportsNotNullUnique not working when false 2012-09-12 10:09:25 -04:00
John Hardin 5a3e1b076c HHH-7398 -- Added testTimeout() and modified AbstractBatchImpl.buildBatchStatement() accordingly.
(cherry picked from commit 7e0559ecdb)
2012-09-05 14:18:29 -05:00
Steve Ebersole 053b676684 HHH-7568 - Add JPA1.0 compound key compatability when orm descriptor file used to override annotations.
(cherry picked from commit 6a48cccd5d)
2012-09-05 12:42:29 -05:00
Jeremy Whiting 0c271ac77a HHH-7568 Added test case to check removal of compound key association items. Changed the detection of JoinColumns to work when orm/hbm xml is used. Added change to configure a property when JoinColumns annotation is used on entity definition.
(cherry picked from commit 961caf770a)
2012-09-05 12:42:29 -05:00
Steve Ebersole bcc76ece6d HHH-1123 - Cannot put more than 1000 elements in a InExpression
(cherry picked from commit 40574b9d8a)
2012-09-05 11:44:33 -05:00
brmeyer 6c7ef9e0da HHH-1123 Cannot put more than 1000 elements in a InExpression(cherry picked from commit 970bd8679e) 2012-09-05 11:44:33 -05:00
Shawn Clowater 33255de38e HHH-7308
Change the beforeCompletion() method of the TransactionObserver() to call the beforeTransactionCompletion() method regardless of whether or not the session is open like the afterCompletion() method does when calling the afterTransactionCompletion() and also cleaned up the log message around session having after transaction events as this sort of logging had been previously moved to the close() method of SessionImpl.
(cherry picked from commit 6ac746fffc)
2012-09-05 09:39:12 -05:00
Strong Liu 77512d01a7 HHH-7371 Natural-id: ObjectNotFoundException when found entity is marked as deleted 2012-09-05 17:21:36 +08:00
Strong Liu a608bc3b87 HHH-7300 - TypeDefs won't be found depending of files read-order 2012-09-05 17:07:52 +08:00
Janario Oliveira 9ffc45dc34 HHH-7115 definition of returned class inside SerializableToBlobType 2012-09-05 15:19:12 +08:00
Guenther Demetz a61a7f40e7 HHH-7059 The DerbyDialect deprecation warning should appear no more,
when using one of the version-specific dialects
2012-09-05 14:48:01 +08:00
nrodrigues 43e0bc01d6 HHH-7532 - Override getForUpdateString with correct syntax 2012-09-05 14:39:31 +08:00
Dustin Schultz c5eeaf71c1 HHH-7544
Fixes java.lang.VerifyError by building StackMapTables at appropriate
places.
2012-09-05 11:55:22 +08:00
Steve Ebersole ca9079f654 HHH-7566 - Activating JOIN fetch profile involving self-referential associations causes StackOverflowError
(cherry picked from commit 4e22fb9044)
2012-09-04 16:09:29 -05:00
Steve Ebersole b43198a5a6 HHH-7203 - IdentityGenerator fails with JOINED Inheritance when inserting entity to PosgtreSQL
(cherry picked from commit 54f4335416)
2012-09-04 15:02:56 -05:00
Steve Ebersole a1c219ee96 HHH-7567 - Better checking when @Enumerated involved
(cherry picked from commit 4450b127b2)
2012-09-04 12:19:36 -05:00
Steve Ebersole ca3cc50a2f HHH-5188 - Use provided enum type ordinal/string when reading
(cherry picked from commit 076eccb7a2)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/type/EnumType.java
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/ExtraAssertions.java
2012-09-03 22:18:28 -05:00
Steve Ebersole 30162bf5ee HHH-7563 - Fallback for JBossAppServerJtaPlatform.locateUserTransaction() to look at "java:jboss" if "java:comp" not available
(cherry picked from commit d743b9b0ba7950d2ab6fa635dd384e06b9811c74)
2012-08-31 11:22:53 -05:00
Didier Villevalois 6713d24d6b HHH-7134 - Detection of wrong circularity when two tables with same name in different schemas
Fixes FKSecondPass processing to take catalog and schema in accounts. Corresponding test class is
org.hibernate.test.cfg.WrongCircularityDetectionTest.
2012-08-31 00:41:17 +08:00
Steve Ebersole 5e9c828512 HHH-7557 - Map entries get deleted
(cherry picked from commit 45f6414f92c9cec920fd84adfd92e1e2347366d0)
2012-08-30 10:47:55 -05:00
Gail Badner d33d481b52 HHH-7545 : Aliases for a collection key and element column can collide causing one to be excluded
(cherry picked from commit 5327ac5396)
2012-08-23 12:09:20 -07:00
Steve Ebersole cde9ee1572 HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections
(cherry picked from commit 52336f4150)
2012-08-16 11:29:48 -05:00
Steve Ebersole 128869ad7e HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections
(cherry picked from commit d8651c3ba7)
2012-08-15 10:59:08 -05:00
Strong Liu eeda71b217 HHH-7509 NPE regression in second level cache 2012-08-09 14:50:33 +08:00
Scott Marlow 15cc02be33 HHH-7509 fix NPE in second level cache 2012-08-08 21:58:58 -04:00
Strong Liu 4d6ae731a9 HHH-7508 Debug logging throws MissingFormatArgumentException when using non standard Optimizer 2012-08-08 21:14:39 +08:00
Strong Liu cc7d8d8e08 HHH-7385 change to use gradle 1.1 2012-08-08 17:53:17 +08:00
Steve Ebersole b810f1049f HHH-7457 - Enable loading of collections thats been detached from session
(cherry picked from commit 467258cffa)
2012-08-07 15:00:48 -05:00
Ståle W. Pedersen 98caa8e44b HHH-7457
enabled hibernate to reattach a collection that hasnt been loaded to the session.
note: this can cause data to be loaded outside a transaction. use with caution.
(cherry picked from commit a1c9ed7756)
2012-08-07 15:00:31 -05:00
Steve Ebersole 98e7fc5d5f HHH-7305 - NPE in LogicalConnectionImpl when multi tenancy is used without providing a release mode manually
(cherry picked from commit a385792178)
2012-08-07 14:05:12 -05:00
Janario Oliveira f5e6ada7d8 HHH-6608 Replaced dot of path to property of many-to-one inside a component 2012-08-06 23:58:40 -03:00
Janario Oliveira edeecef3cf HHH-7108 TypeDef with Enum, included inside of EnumType its own properties to create itself 2012-08-06 23:37:20 -03:00
Steve Ebersole 1fe4baecb9 HHH-7502 - Problems with multi-tenancy and 2nd level cache
(cherry picked from commit 45118e729d)
2012-08-06 18:30:37 -05:00
Strong Liu 4cdf83d1be HHH-2808 CLONE -Impossible to define caching for a subclass's collection in hibernate.cgf.xml 2012-08-06 14:39:03 +08:00
Tair Sabirgaliev 7bcdddfc88 Test: order of <mapping .../> affects caching configuration 2012-08-06 14:38:52 +08:00
Strong Liu 7b5b3c214a HHH-7446 bug-fix 2012-08-06 13:09:39 +08:00
Guenther Demetz 1c57d51a0d HHH-7446 bug-fix 2012-08-06 13:09:31 +08:00
Guenther Demetz 3e1d39b10c HHH-5281 test-case 2012-08-06 13:09:19 +08:00
Strong Liu 30ea6c9025 HHH-6662, HHH-7445 - Fix and test 2012-08-03 18:21:32 +08:00
Strong Liu 00a83af879 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-03 18:19:40 +08:00
Strong Liu c8de4a1d4e HHH-7501 java.lang.ClassCastException: oracle.jdbc.driver.T4CStatement cannot be cast to java.sql.PreparedStatement 2012-08-03 18:18:41 +08:00
Strong Liu b6b9bb8cad HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-03 00:39:19 +08:00
Strong Liu 582fe1ad63 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 23:00:13 +08:00
Strong Liu 5103f10795 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 22:59:12 +08:00
Strong Liu 8815b7a200 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 17:42:58 +08:00
Strong Liu 695ffd2d37 HHH-6068 force this test on H2 2012-08-02 16:04:42 +08:00
Steve Ebersole f6fc21a133 HHH-6204 - JoinColumn on non key field fails to populate collection 2012-08-02 13:36:20 +08:00
Eric Dalquist e813d329bc HHH-7468 Recreate toString value holder after deserialization 2012-08-02 13:33:53 +08:00
Strong Liu ab708a7ed9 HHH-2394 remove last comma in the array, seems some jdks do not support it 2012-07-12 23:55:17 +08:00
Strong Liu cef5f9a7cd HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 23:30:01 +08:00
Rob Worsnop 5cb8d3a8b3 HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 22:59:22 +08:00
Rob Worsnop 82c99ccf6f HHH-2394 Removed unused imports 2012-07-12 22:59:22 +08:00
Rob Worsnop 542bc5c83c HHH-2394 Allowed usage of {alias} marker. 2012-07-12 22:59:22 +08:00
Rob Worsnop 1cd8db2ac3 HHH-2394 Got filters working with secondary tables 2012-07-12 22:59:21 +08:00
Rob Worsnop 05dcc209ae HHH-2394 Implemented @SqlFragmentAlias 2012-07-12 22:58:11 +08:00