Commit Graph

7006 Commits

Author SHA1 Message Date
Steve Ebersole 0fddd62fc0 HHH-10863 - Improve consistency of how we call implicitNamingStrategy.determineBasicColumnName with element collections
(cherry picked from commit 5b5d2b6559)
2016-06-30 11:11:45 -05:00
Guillaume Smet af8ffdee8f HHH-10863 Add a isCollectionElement() method to AbstractAttributeKey
It allows external libraries to test for the collection element marker
without being aware of the exact syntax used as it might change in the
future.

(cherry picked from commit 7f3a3bcbcc)
2016-06-30 11:11:32 -05:00
Guillaume Smet 8e64e3ac93 HHH-10863 Be consistent in the parameter passed to
ImplicitNamingStrategy#determineBasicColumnName

When dealing with an element collection (say items.name),
ImplicitNamingStrategy#determineBasicColumnName is sometimes called
with items.collection&&element.name and sometimes with items.name.

This is due to HHH-6005 which removes the "collection&&element."
part before calling determineBasicColumnName.

With this patch, we only remove the "collection&&element." part before
calling the physical naming strategy, thus allowing us to be consistent
in the way we call ImplicitNamingStrategy#determineBasicColumnName.

(cherry picked from commit 9fd61a10db)
2016-06-30 11:11:21 -05:00
Gail Badner 8e8be9aeb4 HHH-10865 - ManyToMany relation dropped from database when lazy loading is active 2016-06-29 17:19:25 -07:00
Gunnar Morling 01b3b09cfd HHH-10812 Adapting classifier to resemble pattern known from HSEARCH 2016-06-29 21:49:01 +02:00
Gail Badner 995e76e5fb HHH-10413 : fixes required to backport 2016-06-28 23:06:53 -07:00
Gail Badner 0561093de6 HHH-10413 : byte[] as the version attribute broken
(cherry picked from commit 1d20ea4f60)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/type/BinaryType.java
2016-06-28 22:10:48 -07:00
Andrea Boriero 4f46968600 HHH-10861 - Fix nullLiteral in select expression
(cherry picked from commit 597183a3b9)

Conflicts:
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/NullLiteralExpression.java
2016-06-28 17:57:39 -07:00
Gail Badner 57a9345959 HHH-10729 HHH-9021 HHH-10230 : Move tests to hibernate-entitymanager 2016-06-28 17:22:31 -07:00
Gail Badner 31fc318585 HHH-10729 HHH-9021 HHH-10230 : Add more checks to test cases
(cherry picked from commit 13db8b95e3)
2016-06-28 17:14:27 -07:00
Andrea Boriero 6ecd2bd472 HHH-10729 HHH-9021 HHH-10230 - Fix Issue with literals in select expression
(cherry picked from commit e71af130f0)
2016-06-28 17:14:13 -07:00
Andrea Boriero 9bf4a829c5 HHH-10729 HHH-9021 HHH-10230 - Add test for issue
(cherry picked from commit e0963d56b9)
2016-06-28 17:13:59 -07:00
Andrea Boriero f6aa53cb93 HHH-10341 - Fix failing test
(cherry picked from commit 83eb8b0f76)
2016-06-28 13:24:30 -07:00
Andrea Boriero adf41c621d HHH-10341 - Fix Specification violation in Implementation of TupleElement
(cherry picked from commit 04f1fcc762)
2016-06-28 13:24:13 -07:00
Gail Badner f32476e6c9 HHH-10341 - Move test to hibernate-entitymanager 2016-06-28 13:22:57 -07:00
Andrea Boriero c9bfcdcb10 HHH-10341 - Add test for issue
(cherry picked from commit 57b954d476)
2016-06-28 13:19:18 -07:00
Gail Badner 5b255fa0c2 HHH-10843 : Fix QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression 2016-06-28 13:07:08 -07:00
Gail Badner 61d73f6214 HHH-10843 - Move test to hibernate-entitymanager 2016-06-28 12:34:20 -07:00
Andrea Boriero 9eea8266a5 HHH-10843 - Add test for issue
(cherry picked from commit a3ed7010b6)
2016-06-28 12:26:23 -07:00
Gunnar Morling 6f3be18e80 HHH-10812 Ensuring correct order of build tasks 2016-06-28 15:02:40 +02:00
Gunnar Morling 1b3e067235 HHH-10812 Addressing review remarks 2016-06-28 11:47:57 +01:00
Gunnar Morling 538412bdc4 HHH-10812 Adding documentation 2016-06-28 11:47:36 +01:00
Gunnar Morling 20ace8fea1 HHH-10812 Adding module ZIP and integration test for using Hibernate ORM 5.1 on WildFly 10 2016-06-28 11:47:36 +01:00
Vlad Mihalcea 2e7d0015be Update the Locking documentation
- add a side-by-side comparison of LockMode and LockModeType
- describe the follow-on-locking behavior
2016-06-23 16:26:30 +03:00
Gail Badner d407e73775 HHH-10648 : Backport corrections 2016-06-23 00:27:54 -07:00
Gail Badner 5006e92ce5 HHH-10648 : No MultipleBagFetchException is thrown when fetching two bags eagerly
(cherry picked from commit 59c0d48f8d)
2016-06-23 00:11:12 -07:00
Gail Badner dd2f668c97 HHH-10761 : Added test case
(cherry picked from commit d5fa58e850)
2016-06-21 16:53:00 -07:00
Gail Badner 8bc779ef92 HHH-8999 : Changed references to SharedSessionContractImplementor to SessionImplementor 2016-06-21 12:26:56 -07:00
Gail Badner 4a341be749 HHH-8999 : NullPointerException when updating or deleting multiple entities of same type with non-comparable IDs
(cherry picked from commit 6853fdae70)
2016-06-21 12:19:12 -07:00
Gail Badner 664950367d HHH-8999 : Added test cases
(cherry picked from commit 280f93add3)
2016-06-21 12:19:00 -07:00
Vlad Mihalcea 0609471258 HHH-10826 Auxiliary Database Object no longer documented
HHH-10334 @Formula annotation javadoc contains database dependent sample usage

Created a new section related to automatic schema generation
2016-06-20 15:06:58 +03:00
Steve Ebersole 7096f223e6 HHH-10774 - SortedMap defined in .hbm.xml are not sortable
(cherry picked from commit 60aac117e6)
2016-06-19 12:10:12 -05:00
Steve Ebersole 10123cf46a HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element
(cherry picked from commit b7f17ce898)
2016-06-16 14:15:20 -07:00
Gail Badner d2ed801ea8 HHH-10562 : ManagedEntity linked list broken when non-associated enhanced entity is evicted
(cherry picked from commit 7ed51f44dd)
2016-06-15 22:14:43 -07:00
Gail Badner bfc4289f12 HHH-10375 : Add import required to backport 2016-06-15 17:43:50 -07:00
Gail Badner 532b63042c HHH-10360 : Natural ID columns are nullable by default
(cherry picked from commit 10a035481d)
2016-06-15 17:35:42 -07:00
Gail Badner e72ff7687c HHH-10360 : Added test cases
(cherry picked from commit 67c7858dd5)
2016-06-15 17:35:20 -07:00
Chris Cranford fbe730abf1 HHH-8305 - Fix ToOne join tables with optional=true and OneToOne inverse mappings.
(cherry picked from commit 86fad51)
2016-06-15 15:35:46 -05:00
Andrea Boriero 557de57927 HHH-10375 - Fix adding an entity at index to list with @OrderColumn in detached Entity
(cherry picked from commit da0b46d61c)
2016-06-14 16:30:30 -07:00
Andrea Boriero cf665a3e84 HHH-10375 - Add test for issue
(cherry picked from commit 6e47c2840a)
2016-06-14 16:30:20 -07:00
Chris Cranford b57bbdabf6 HHH-10811 - Fix character encoding issues with Enver's XML mappings when JVM encoding isn't UTF-8.
(cherry picked from commit 77a4a95)
2016-06-14 11:37:36 -05:00
Gail Badner b74868d658 HHH-10427 - Fix ServiceRegistry creates multiple service instances and returns uninitialized services 2016-06-13 22:31:17 -07:00
Chris Cranford 5ab790cad2 HHH-10299 - Fix DOM4J entity-mode deprecation warning for Envers audited entities.
(cherry picked from commit be93105)
2016-06-13 23:30:04 -05:00
Chris Cranford 6117886049 HHH-7510 - Fix LazyInitializationException for ManyToMany when deleting and global_with_modified_flag is enabled.
(cherry picked from commit 69b8879)
2016-06-13 22:24:50 -05:00
Gail Badner 27ed69c2bc HHH-10515 : Moved test to hibernate-entitymanager` 2016-06-13 19:43:09 -07:00
Andrea Boriero c892df7aa9 HHH-10515 - Add test for issue
HHH-10515 - Fix Stored procedure execution fails to find column

HHH-10515 : Add test case using no JDBC DatabaseMetaData; move original test case to hibernate-core

HHH-10515 - Fix Stored procedure execution fails to find column

(cherry picked from commit 0eaf431ef6)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
2016-06-13 19:39:37 -07:00
Chris Cranford 8f1dbf51f0 HHH-10841 - Fix columns with generated annotation not being tracked by Envers. 2016-06-13 19:24:31 -05:00
Andrea Boriero 312ef5600f HHH-10352 - Fix HBM2DDL does not use described name for foreign key in join inheritance
(cherry picked from commit 2ea122aedd)
2016-06-13 17:04:54 -07:00
Andrea Boriero a1b133381f HHH-10352 - Add test for issue
(cherry picked from commit 4afa8fb57d)
2016-06-13 17:04:32 -07:00
Andrea Boriero dc32226aab HHH-10796 - Fix org.hibernate.query.Query<R> setProperties(Map map); set to null parameters not contained in the map
(cherry picked from commit 35cefeda2f)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/query/internal/AbstractProducedQuery.java
2016-06-13 16:30:20 -07:00