Yoann Rodière
8389b1a7a2
HHH-14567 Do not reuse query plans after session filters changed
2021-04-19 17:58:57 +02:00
Yoann Rodière
3bac846de2
HHH-14567 Test enabling filters after query creation but before query execution
2021-04-19 17:58:57 +02:00
Yoann Rodière
b0abe9f37e
HHH-14563 Remove the DOM4J dependency from hibernate-enhance-maven-plugin
...
As far as I can tell, this was only necessary as a transitive dependency
of Hibernate ORM.
2021-04-19 15:39:35 +02:00
Yoann Rodière
d7e85a3c3c
HHH-14563 Clarify that hibernate-spatial only needs dom4j for tests
...
For org.hibernate.spatial.testing.TestDataReader, to be precise.
2021-04-19 15:39:35 +02:00
Yoann Rodière
4264bc55ac
HHH-14563 Remove the DOM4J dependency from hibernate-core
2021-04-19 15:39:35 +02:00
Yoann Rodière
87a3e0a5d8
HHH-14563 Remove a few obsolete references to DOM4J entity-mode
...
This mode was removed literally a decade ago.
2021-04-19 15:39:35 +02:00
Yoann Rodière
b076216e84
HHH-14563 Remove XmlMappingOptions
...
We don't need that anymore: XML mapping is either enabled or disabled,
there are no other options. So a boolean will do.
2021-04-19 15:39:35 +02:00
Yoann Rodière
6f5f6b32c3
HHH-14563 Remove DOM4J-based XML mapping
...
Use JAXB-based XML mapping everywhere.
2021-04-19 15:39:35 +02:00
Yoann Rodière
194e53a0fb
HHH-14563 Remove legacy tests for DOM4J-based XML mapping
2021-04-19 15:39:35 +02:00
Yoann Rodière
4f7bb75ec7
HHH-14529 Fix access type being ignored when defined at the entity level in orm.xml
...
That's a bug I introduced when I migrated code from dom4j to jaxb.
2021-04-19 15:39:35 +02:00
Yoann Rodière
5b830f3f5e
HHH-14529 Fix invalid order of elements in orm.xml files used for tests
...
Surprisingly, the XSD does mandate a specific order for some elements,
including "entity", "embeddable" and the children of "attributes".
It turns out we were allowing a wrong order with the dom4j
implementation, but we no longer do with the jaxb implementation.
2021-04-19 15:39:35 +02:00
Yoann Rodière
6723ed4626
HHH-14529 Fix incorrect attribute name for @NamedEntityGraph in JPAXMLOverriddenAnnotationReader
2021-04-19 15:39:35 +02:00
Andrea Boriero
6f75d96a99
HHH-14549 Collection with default field initializer will always be empty
2021-04-19 14:14:48 +02:00
Andrea Boriero
7620e0e395
HHH-14549 Add test for issue
2021-04-19 14:14:48 +02:00
Jan Schatteman
107aab03eb
Added test for non-select criteria queries
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-04-16 12:14:45 -05:00
Christian Beikov
9cea757979
Move unionsubclass tests and implement better union subclass support
2021-04-16 18:50:31 +02:00
Jan Schatteman
9e66c77749
Correction to the QuerySqmImpl constructor used for criteria queries
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-04-16 10:34:11 -05:00
Christian Beikov
4f6019d524
Cleanup case when handling and implement parameter handling for case result arms
2021-04-16 07:27:19 -05:00
Andrea Boriero
badc99705a
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-04-16 13:19:16 +02:00
Christian Beikov
df9d285f2c
Implement support for avoiding joins when accessing FK keys
2021-04-16 10:35:05 +02:00
Karel Maesen
2aa2bee255
HHH-11490 Fix for UUID mapping conflict
...
* HHH-11490 Fix for UUID mapping conflict
* HHH-11490 Custom ValueBinder implementation
2021-04-15 20:02:48 +02:00
Steve Ebersole
c74e5ef595
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql
improve cast-target handling
2021-04-15 12:51:02 -05:00
Steve Ebersole
b31f2c02d7
re-enable tests
...
re-organize some tests
CastNullSelectExpressionTest (not-implemented-yet)
2021-04-15 11:42:07 -05:00
Steve Ebersole
4917d7c6bd
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql
improve cast-target handling
https://github.com/hibernate/hibernate-orm/discussions/3889
2021-04-15 11:41:43 -05:00
Steve Ebersole
e0bbb02c99
re-enable tests
...
re-organize some tests
case expression and nested expression type inference
preliminary support for "type precedence"
2021-04-15 08:52:41 -05:00
Steve Ebersole
c2f59beb64
re-enable tests
...
re-organize some tests
case expression and nested expression type inference
preliminary support for "type precedence"
2021-04-15 08:52:32 -05:00
Yoann Rodière
ac4f4ff4ad
HHH-14529 Implement the (opt-in) orm.xml handling using JAXB
2021-04-15 14:01:28 +02:00
Yoann Rodière
10aee2a9fa
HHH-14529 Add a common interface for Jaxb representations of associations
2021-04-15 14:01:28 +02:00
Yoann Rodière
437af3b4da
HHH-14529 Add a common interface for JaxbEntity, JaxbMappedSuperclass and JaxbEntityListener
2021-04-15 14:01:28 +02:00
Yoann Rodière
b4dd2e272f
HHH-14529 Add a few missing methods to the JAXB representation of ManagedType
2021-04-15 14:01:28 +02:00
Yoann Rodière
efe5424d35
HHH-14529 Add a few missing enum mappings for orm.xml
2021-04-15 14:01:28 +02:00
Yoann Rodière
bbc25cf28b
HHH-14529 Add common interface for JaxbEntity and JaxbMappedSuperclass
2021-04-15 14:01:28 +02:00
Yoann Rodière
8ab3a2f7e9
HHH-14529 Configuration and wiring to prefer JAXB over DOM4J for orm.xml handling
2021-04-15 14:01:28 +02:00
Yoann Rodière
e8cd9f8917
HHH-14529 Clean up constructors in JPAXMLOverriddenMetadataProvider and related
2021-04-15 14:01:28 +02:00
Yoann Rodière
ef6bb2679b
HHH-14529 Remove an unused orm.xml file from tests
2021-04-15 14:01:28 +02:00
Yoann Rodière
7291036680
HHH-14529 Copy orm.xml handling code to prepare for the new JAXB-based implementation
...
We will adapt the code in a later commit; I'm only doing the copy in
this commit in order to keep the review manageable.
2021-04-15 14:01:28 +02:00
Yoann Rodière
55ef4d47f2
HHH-14529 Remove commented-out code related to mapping parsing using dom4j
2021-04-15 14:01:28 +02:00
Yoann Rodière
f92275f6c2
HHH-14529 Clarify that most fields are final in JPAOverriddenAnnotationReader
2021-04-15 14:01:28 +02:00
Yoann Rodière
2907c95cbd
HHH-14529 Introduce JAXB bindings for JPA's orm.xml
...
Adapted from Steve's work on the unified JPA/ORM XML mapping. See:
4ff3795e60 (diff-b407928c3aa7ee1f231e0119ff70345caa5f6a83ed6348128c5159afbe3c6df2)
https://github.com/sebersole/hibernate-orm/compare/jandex-binding
Co-authored-by: Steve Ebersole <steve@hibernate.org>
2021-04-15 14:01:28 +02:00
Yoann Rodière
252fb65f95
HHH-14529 Remove an unused xjb file
2021-04-15 14:01:28 +02:00
Yoann Rodière
18f23ee701
HHH-14529 Fix invalid namespace URIs in MappingXsdSupport
...
Probably copy/pasted from ConfigXsdSupport, and we forgot to add the
"/orm" suffix.
2021-04-15 14:01:28 +02:00
Yoann Rodière
fcc63d9ab0
HHH-14529 Stop using two separate BootstrapServiceRegistries for the same SessionFactory in BaseCoreFunctionalTestCase
2021-04-15 14:01:28 +02:00
Yoann Rodière
ebb30aa178
HHH-14530 Allow adding pre-parsed XML mappings to MetadataSources
...
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-04-15 14:01:28 +02:00
Steve Ebersole
3958ee2360
re-enable tests
...
re-organize some tests
work on `org.hibernate.test.hql.size`
improved key/target handling for fk-descriptor
2021-04-14 16:06:15 -05:00
Yoann Rodière
571af7bc9e
HHH-14557 Test JDBC resources are released on each rollback
2021-04-14 14:15:07 +02:00
Yoann Rodière
e03beca97f
HHH-14557 Test JDBC resources are released on each commit
...
Not just on session closing.
2021-04-14 14:15:07 +02:00
Yoann Rodière
3825a671a7
HHH-14557 Always release JDBC connection and resources on rollback
2021-04-14 14:15:07 +02:00
Christian Beikov
c4445fbf5c
Work on named-native query support
2021-04-13 10:32:55 +02:00
Andrea Boriero
ae69a1aeb4
Fix MariaDB, DB2 and Derby column type for text type attributes
2021-04-10 12:34:58 +02:00
Andrea Boriero
6f42929b55
Move tests from org.hibernate.test.immutable to org.hibernate.orm.test.immutable
2021-04-10 12:34:58 +02:00