6387 Commits

Author SHA1 Message Date
barreiro
189b379c83 HHH-9529 - [enhancer] check that the field being accessed belongs to the entity being enhanced
(cherry picked from commit 1568f894266ecd46558d2065713b7f401c7e5c81)
2015-11-17 10:39:58 -06:00
Steve Ebersole
682c0642e2 HHH-10178 - Move Geronimo JTA jar to provided configuration (non-transitive)
(cherry picked from commit 4793ca30a2f1d16691b3dcc1976dc78c7ef9d7ba)
2015-11-17 10:24:08 -06:00
Gail Badner
d3d88cfa67 HHH-10161 : Hibernate ignores return value from javax.persistence.Parameter#getParameterType()
(cherry picked from commit b4dbb90f1719c95f31434122150c5f3f6fd9dd8d)
2015-11-16 22:46:47 -06:00
Selaron
0280fe6d2a HHH-10181 - CacheableFileXmlSource.doBind uses obsolete .bin file
Check for obsolete cache file during runtime of doBind(..) instead of
CacheableFileXmlSource instantiation only. Subsequent calls of doBind on
a given CacheableFileXmlSource instance should detect that cache file is
fresh and make use of it.

(cherry picked from commit b1e4fc1ae460358080b5fbca438f1b6c4dc5d6bd)
2015-11-16 22:13:09 -06:00
Steve Ebersole
fe6e2842fd HHH-9195 - Adding an entity at a given index in a list annotated with OrderColumn adds the entity at the end
(cherry picked from commit 5e873979029f24e9c4498d3869c96dbf45c5b3e7)
2015-11-16 22:06:44 -06:00
Gail Badner
642d42dc92 HHH-10273 : Explicitly put column/table names that are DB2 keywords in quotes 2015-11-16 18:10:11 -08:00
Andrea Boriero
5a98ded540 HHH-10288 - Temporary table support is broken using PostgresPlusDialect 2015-11-16 12:19:23 +00:00
Andrea Boriero
0ed5fcfc66 HHH-10293 - Schema Update - Single table Inheritance with bi-directional OneToMany referencing superclass fails 2015-11-15 18:01:10 +00:00
Andrea Boriero
ccf7fe2e49 HHH-10293 - Add test for issue 2015-11-15 18:00:59 +00:00
Andrea Boriero
12050ae7e8 HHH-5946 - Tests for not equals operations expecting QuerySyntaxException require dialect does not support row value constructor syntax 2015-11-14 14:35:41 +00:00
Andrea Boriero
5559b596e6 HHH-10274 - org.hibernate.id.SequenceValueExtractor does not work for DB2, Oracle, or SQL Server 2015-11-13 17:31:51 +00:00
Andrea Boriero
7f6d14a612 HHH-10247 - Fix Hibernate ignores foreign-key attribute name in hbm <many-to-many> 2015-11-12 23:16:21 +00:00
Andrea Boriero
310ebdd7ac HHH-10247 - Add test for issue 2015-11-12 23:16:12 +00:00
Andrea Boriero
32e2ce7ac2 HHH-10279 - Fix checkstyle errors 2015-11-12 22:46:36 +00:00
Steve Ebersole
37266f0d82 HHH-10281 - More formally deprecate the legacy bytecode enhancement code
(cherry picked from commit 9872358bed88146ae438e98d5bcd544beedc4604)
2015-11-12 10:48:40 -06:00
Andrea Boriero
1d8463129f HHH-10270 - Hibernate User Guide transactions chapter examples are not properly rendered 2015-11-12 14:28:38 +00:00
barreiro
0145736fe5 HHH-10271 - Add ordinal() method to EventType and change EventListenerRegistryImpl to take advantage of that
(cherry picked from commit 340cee232a42144aac2d1341ad4fbfae8d76acd8)
2015-11-12 08:16:09 -06:00
Stuart Douglas
feacc4a3b0 HHH-10279 - Memory usage improvements -
* Don't allocate IdentityMap if it is not needed
* Only allocate unresolved insertions if requied
* Don't create a new string when creating a named query
* Allocate querySpaces lazily
* Remove executableLists from ActionQueue
* Allocate ExecutableList instances lazily
* Lazily allocate the transaction commit task lists
* Don't allocate a new EntityKey

(cherry picked from commit 991ff265dad6480ab2632d61964ae0c0c27b29b0)
2015-11-12 06:52:05 -06:00
Gail Badner
38c355ed42 HHH-10273 : Reserved word used for database object in testsuite
(cherry picked from commit fa7851058c28eebc35c524f8bf63796779ac62fa)
2015-11-11 18:15:02 -08:00
John O'Hara
fc077401e7 HHH-10259 : ForUpdateFragment.toFragmentString() does not check if aliases are defined when lockOptions are not null 2015-11-11 16:33:14 -08:00
Steve Ebersole
60e8f8cfe4 HHH-10264 - hibernate.cache.auto_evict_collection_cache problems;
HHH-9140 - Error in CollectionCacheInvalidator when hibernate.cache.auto_evict_collection_cache is enabled

(cherry picked from commit 1d5b0779d6df327f935e9be306ac203a84345ae0)
2015-11-10 09:15:12 -06:00
Janario Oliveira
6dbb3a8f57 HHH-10264 - Values weren't cached after persist
HHH-9140 - Allow to look for id outside of context
ERROR CollectionCacheInvalidator:145 - org.hibernate.TransientObjectException: The instance was not associated with this session
	at org.hibernate.internal.SessionImpl.getIdentifier(SessionImpl.java:1511)
(cherry picked from commit f0d8fcd)

Added property to propagate error in test case

Test case without mappedBy
org.hibernate.HibernateException: Unable to resolve property:
	at org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:926)

(cherry picked from commit bf2eb018563c09162308981193a26055e4d5e09c)
2015-11-10 09:15:00 -06:00
Emanuele Gesuato
92a830a5dd HHH-5946 - Wrong SQL generated when composites are compared using not-equal operator
(cherry picked from commit cd2b031b6b166d67977e5ee91c5958a3639dd962)
2015-11-09 23:08:37 -06:00
Steve Ebersole
7612f8c183 HHH-8847 - Exception thrown when trying to select a treated property
(cherry picked from commit 4132a4293a3e05770ec83b464338300c5396545e)
2015-11-09 22:42:45 -06:00
Steve Ebersole
823bf5e0d8 HHH-9475 - Cannot mix @MapKey with @Convert 2015-11-09 22:22:30 -06:00
Steve Ebersole
06637289b8 HHH-9710 - IllegalArgumentException passing null as parameter value with explicit TemporalType
(cherry picked from commit f940c72aa901fe0b0473d9d9effc97255241082d)
2015-11-09 22:06:18 -06:00
Steve Ebersole
5169f77fb2 HHH-9710 - IllegalArgumentException passing null as parameter value with explicit TemporalType
(cherry picked from commit 7a2fbbd79ade49f31462fe1d542c1d59ff84b1cf)
2015-11-09 22:04:47 -06:00
Janario Oliveira
fa526f6011 HHH-9475 Cannot mix @MapKey with @Convert - Moved classes to reuse in test case; Added copy of type from referenced MapKey
(cherry picked from commit 80e851e7d0a13f7aab3f683d2b46fbb985fdbe46)
2015-11-09 21:49:23 -06:00
Steve Ebersole
bd20ba86a4 HHH-10251 - Memory Leak when using Reference Cached, bytecode enhanced Immutable Entities 2015-11-09 17:02:56 -06:00
John O'Hara
59f721a250 HHH-10251 : Memory Leak when using Reference Cached, bytecode enhanced Immutable Entities 2015-11-09 17:02:56 -06:00
Steve Ebersole
4bfb349d16 HHH-1706 - Named parameters ignored when single apostrophe encountered within an SQL comment
(cherry picked from commit 2b563794c7c661fe10bb6294dabeac030449d2e5)
2015-11-09 15:20:32 -06:00
Steve Ebersole
f6de8f83a2 HHH-1706 - Named parameters ignored when single apostrophe encountered within an SQL comment
(cherry picked from commit e4d102c5b1460a056ee9fec8f74f660ef764fde9)
2015-11-09 09:19:22 -06:00
Matt Drees
943acc78bc HHH-5764 - Support for multi-level derived ids
(cherry picked from commit a32372d7519616036b777e2d457189e77c1ddf6e)
2015-11-09 08:22:58 -06:00
barreiro
b4b6fa97e6 HHH-10145 - [maven plugin] Transitive dependencies as well
(cherry picked from commit 7da8e53469f0e51ba55d31efe55e2fd068afc9e7)
2015-11-06 12:22:50 -06:00
barreiro
ab4cada056 HHH-10146 - [gradle plugin] Create loading classloader after classes have been compiled
(cherry picked from commit 0089a3f40fed5b3f21b32f85211aca95632c9f5b)
2015-11-06 12:22:39 -06:00
barreiro
577bd4752a HHH-10145 - [maven plugin] Include dependencies in loader classloader
(cherry picked from commit 080fcd90821cc71664ed10a6453c651c5c57d00c)
2015-11-06 12:22:27 -06:00
barreiro
32d32ec0d2 HHH-10112 - [enhancer] Use loading classloader in ClassPool
(cherry picked from commit 3f2c78533e8a60b0c44b7423e24eddff6bb322ef)
2015-11-06 12:22:11 -06:00
Steve Ebersole
ca46d28db3 HHH-10219 - Infinite loop generating IDs if using negative increment
(cherry picked from commit cd7212a1e8f658f26f3674140cc511fd20b6590b)
2015-11-06 10:35:10 -06:00
Steve Ebersole
deea4adfe9 HHH-10242 - Deal with HCANN poor handling of multiple properties by matching stem name
(cherry picked from commit ae9ff5587e2e57a689f2093b2f89c88b72416ef5)
2015-11-05 11:55:43 -06:00
Emmanuel Bernard
32806083ef HHH-10242 Detect ambiguous properties
boolean idId() + UUID getId() is ambiguous if no @Transient is involved

(cherry picked from commit 5cc5ed1c84584939efe28dd3f8373f68ff194730)
2015-11-05 11:55:29 -06:00
Steve Ebersole
3d89f9e771 HHH-8802 - Class cast exception thrown when trying to access Embedded type relationship path in Tuple
(cherry picked from commit 2e6811f41392feec7e704b5526822f4f0f1a99be)
2015-11-05 09:35:57 -06:00
Steve Ebersole
282a7b1afc HHH-10208 - Index and unique-key constraints not properly handled with implicit columns in hbm.xml binding
(cherry picked from commit ec8794bbd046ede7b2cc0be18a99b90acac973ad)
2015-11-04 23:34:28 -06:00
Steve Ebersole
d167599793 HHH-9481 - SQL query clears all cache
(cherry picked from commit 9128b84b54f64140c6dbd53d7be10371c93869cd)
2015-11-04 21:45:01 -06:00
Steve Ebersole
d01e602ffc HHH-6672 - Remove UNION support from 5.x grammars
(cherry picked from commit dd4f809d209c930ef02789ff8445df81641fb0c3)
2015-11-04 21:19:03 -06:00
Steve Ebersole
0e999e897e HHH-10248 - map removed TransactionFactory classes
(cherry picked from commit 22ffaea0c322769a14e93781cae3f06c98b7093f)
2015-11-04 20:56:20 -06:00
Steve Ebersole
8a6f504d27 HHH-8775 - Exception when mapping a class more than once - applying tests from https://github.com/hibernate/hibernate-orm/pull/677 + fix
(cherry picked from commit 1a2bdd09e8d20663af5c1b98f7e9e9a86aa1ab57)
2015-11-04 20:33:25 -06:00
Steve Ebersole
b909b536c6 HHH-10203 - Overriden UniqueDelegate.getTableCreationUniqueConstraintsFragment not called anymore in SchemaExport
(cherry picked from commit eadb0fec8f4301a83e438e3066ab92756216e3af)
2015-11-04 16:16:51 -06:00
Steve Ebersole
fa09055a8c HHH-9794 - Replace string with preceding comma is not replacing string as required
(cherry picked from commit 4218f365e56bdf41f73fd1dd3341f2acbf910479)
2015-11-04 16:11:15 -06:00
Steve Ebersole
412546753f HHH-9195 - Adding an entity at a given index in a list annotated with OrderColumn adds the entity at the end
(cherry picked from commit 30d7c800bd869579350d5a3e71b727b6e06961ae)
2015-11-04 13:03:46 -06:00
Gail Badner
239688c39b HHH-10202 : Delay resolving TypeScopeImpl#factory after deserialization until resolveFactory() is called 2015-11-03 17:19:23 -08:00