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
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
Andrea Boriero
951a7611b3
JPA Criteria do not load eagerly JOIN Fecth collections as Hibernate Criteria did
2021-04-10 12:34:57 +02:00
Andrea Boriero
dc21d565d3
JPA Criteria do not load eagerly JOIN Fecth collections as Hibernate Criteria did
2021-04-10 12:34:57 +02:00
Andrea Boriero
f6f1cb06d4
Fix issue with EmbeddableMappingType creation
2021-04-10 12:34:57 +02:00
Andrea Boriero
7fc2593515
AbstractImmediateCollectionInitializer fix NPE
2021-04-10 12:34:56 +02:00
Andrea Boriero
9c27e41184
Remove o.h.testing.junit5 package
2021-04-10 12:32:18 +02:00
Steve Ebersole
4f2b0778d3
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql
improve parameter handling by tracking mapping-model types resolved for them in SQM->SQL translation
improve support for ANY mapping use in queries
improve support for comparisons involving SqlTuple
improve support for binding composite Query param values
improve support for plural-attribute refs in SQM
improve support for to-one attribute refs in SQM (including lazily generating the TableGroupJoin when used as selection)
2021-04-09 16:02:56 -05:00
Andrea Boriero
6bd7a4d972
HHH-14503 - Migration of tests from jpa/test to orm/test/jpa
2021-04-08 17:33:43 +02:00
Andrea Boriero
a7f242af03
HHH-14503 - Migration of tests from jpa/test to orm/test/jpa
2021-04-08 17:33:43 +02:00
Jan Schatteman
e2225d8814
HHH-14503 - Migration of tests from jpa/test to orm/test/jpa
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-04-08 17:33:43 +02:00
Steve Ebersole
3d90dbfbae
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql
improve parameter handling by tracking mapping-model types resolved for them in SQM->SQL translation
2021-04-08 08:08:54 -05:00
Christian Beikov
06b5eb43c6
HHH-11692 Introduce DISTINCT predicate in HQL and implement emulations
2021-04-07 18:28:38 +02:00
Andrea Boriero
e67d10ee6c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-04-07 09:19:21 +02:00
Steve Ebersole
c85ec5a7e4
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql - order-by
2021-04-06 14:31:36 -05:00
Christian Beikov
b166e684e1
Skip certain LockTests for Oracle on GH Actions which don't work there
2021-04-06 16:12:19 +02:00
Andrea Boriero
e8a5506eb5
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-04-06 10:17:37 +02:00
Christian Beikov
c285f604f3
Implement table group rendering for real table groups and get rid of canInnerJoin flags due to that
2021-04-06 09:08:18 +02:00
Steve Ebersole
159135ea89
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql - order-by
add Expression#unwrap to help account for SqlSelectionExpression
2021-04-02 07:30:08 -05:00
Steve Ebersole
51074eb9a0
re-enable tests
...
re-organize some tests
continuing with o.h.test.hql
fixed bug in JPA model building with dynamic entities
added NavigablePath#getUnaliasedLocalName to aid in resolving ModelParts as part of SQM->SQL
2021-04-01 11:07:28 -05:00
Christian Beikov
f1ede3df4f
Fix type resolution issues and add missing JTDs. Fix SQL trim parsing and some newly added tests
2021-04-01 16:07:21 +02:00
Christian Beikov
e22dc55adb
Various fixes
...
* Resolve return type for SUM according to JPA spec
* Specify invariant return types for SQRT and MOD as required by the JPA spec
* Fix JPA tuple element access support
* Fix join management for JPA related methods
* Handle optional escape character for like predicate
* Implement type inference for result arms of case expressions
* Implement min/max element/index functions as sub-query
* Implement min/max function support
* Implement emptiness, exists and member of predicate for JPA Criteria
* Implement size function as sub-query
* Implement group by entity alias by using FK key
2021-04-01 16:07:21 +02:00
Christian Beikov
46a16c605a
Add support for DML with versioned entities
2021-04-01 16:07:21 +02:00
Steve Ebersole
af891c0997
re-enable tests
...
re-organize some tests
clean-up and tests related to fks
2021-04-01 06:54:57 -05:00
Steve Ebersole
1a9079006c
Rename SelectionMapping(s) to SelectableMapping(s) and related changes
2021-03-31 11:21:51 -05:00
Steve Ebersole
c7c963075b
re-enable tests
...
re-organize some tests
support for `KEY(mapReference)` in SQM
2021-03-31 09:04:33 -05:00
Gail Badner
ad84aaf0bc
HHH-14537 : Updated test as requested; added tests that lazy associations with non-existing entity is unaffected.
2021-03-30 11:19:38 -07:00
Gail Badner
3c1e16e06c
HHH-14537 EntityNotFoundException thrown when non-existing association with @NotFound(IGNORE) mapped has proxy in PersistenceContext
2021-03-30 11:19:38 -07:00
Gail Badner
9cb9137fb8
HHH-14537 : Added test for issue
2021-03-30 11:19:38 -07:00
Steve Ebersole
a692061ae1
re-enable tests
...
re-organize some tests
fixed edge case for implicit basic type resolution
2021-03-30 08:47:16 -05:00
Steve Ebersole
fcd7a6f356
re-enable tests
...
re-organize some tests
fixed bad merge
2021-03-29 12:23:37 -05:00
Steve Ebersole
7fcde66d61
HHH-14524 : Rename SqlType(X) as JdbcType(X)
2021-03-29 11:33:56 -05:00
Steve Ebersole
a02835bdde
re-enable tests
...
re-organize some tests
added `@LoggingInspections`
added `@MessageKeyWatcher`
account for various "odd" explicit Type mappings
fix column read/write transformations
2021-03-29 10:58:44 -05:00
Gavin King
e4f1461e17
move the code for generating check constraints to Dialect
2021-03-26 21:27:46 +01:00
Steve Ebersole
e4111a5453
re-enable tests
...
re-organize some tests
added `@LoggingInspections`
added `@MessageKeyWatcher`
2021-03-26 12:50:32 -05:00
Gavin King
3c72f6fe12
cleanup lots of warnings, especially generics-related
2021-03-26 18:45:18 +01:00
Gavin King
d193a9409a
simply remove @Tuplizer completely
2021-03-25 18:54:41 +01:00
Gavin King
20e855acf1
use wildcard instead of raw type in annotation members
2021-03-25 18:54:41 +01:00
Gavin King
aeee127e59
deprecate @Tuplizer since EntityTuplizer is deprecated
...
and add a constraint to the class type
2021-03-25 18:54:41 +01:00
Gavin King
4e22929c3c
remove deprecated FlushModeType
...
that was already removed from FlushMode
2021-03-25 18:54:41 +01:00
Gavin King
bbf4619fcd
remove deprecated Sort annotation
2021-03-25 18:54:41 +01:00
Gavin King
d0afd6359e
remove deprecated and unused members of QueryHints
2021-03-25 18:54:41 +01:00
Gavin King
9dcbe4c2d1
get rid of useless members of @Tuplizer annotation
...
Get rid of both the deprecated way and the unimplemented (!) way
of doing something that was never useful to begin with.
2021-03-25 18:54:41 +01:00
Gavin King
3b3487a74e
remove deprecated @Entity annotation
2021-03-25 18:54:41 +01:00
Gavin King
50363dcc2c
remove deprecated CascadeType.EVICT
2021-03-25 18:54:41 +01:00
Gavin King
c89319f3e9
remove AccessType annotation
2021-03-25 18:54:41 +01:00
Gavin King
4b56842c7f
make @AttributeAccessor annotation typesafe
2021-03-25 18:32:21 +01:00
Gavin King
ef69465f48
move several new types out of the root package
...
The namespace org.hibernate is already much too cluttered and
we should try hard to not make it worse in H6.
Furthermore, some of these things look to be of more interest
to developers of Hibernate than to users.
Now, I'm not sure that org.hibernate.query is absolutely the
best place either, but it's at least better.
2021-03-25 17:33:54 +01:00
gavin
af84daa416
remove some deprecated code
...
- OptimisticLockException
- MappingNotFoundException
- BasicQueryContract
these types were already deprecated in 5.
2021-03-25 17:30:24 +01:00
Andrea Boriero
9d6306cac2
re-enabled AggressiveReleaseTest tests
2021-03-25 17:09:54 +01:00
Christian Beikov
cee56a5c42
Fix tests for PostgreSQL
2021-03-25 12:52:38 +01:00
Christian Beikov
9c175d0de2
Fix issues in PackagedEntityManagerTest
2021-03-25 11:57:29 +01:00
Christian Beikov
9612c838ed
Fix test suite hanging for PostgreSQL and MariaDB
2021-03-25 09:22:59 +01:00
Christian Beikov
2b06123635
Try dropping local tables in same connection
2021-03-25 09:20:39 +01:00
Steve Ebersole
fd470d1387
re-enable tests
...
re-organize some tests
2021-03-24 16:10:43 -05:00
Steve Ebersole
523113d2ca
re-enable tests
...
re-organize some tests
fixed EnumType mapping from hbm.xml
various fixes in HQL, Criteria and parameter handling related to enum values
2021-03-24 15:34:14 -05:00
Andrea Boriero
1114da8b8f
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-03-24 09:45:58 +01:00
Guillaume Smet
2c1aedd176
HHH-12867 Add test case
2021-03-24 09:40:11 +01:00
Steve Ebersole
edcd7cfdc4
re-enable tests
...
re-organize some tests
fixed more missing `@Entity#name`
2021-03-23 14:53:34 -05:00
Steve Ebersole
e04a9bff0d
re-enable tests
...
re-organize some tests
2021-03-23 13:13:12 -05:00
Steve Ebersole
1caebf7cc6
re-enable tests
...
re-organize some tests
2021-03-22 17:28:28 -05:00
Steve Ebersole
1f028095cf
re-enable tests
...
remove org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry
re-organize some tests
2021-03-22 15:40:25 -05:00
Mark Rotteveel
e76da92b04
HHH-14484 Improve support for Firebird 4
...
Also includes:
- Some general Firebird improvements
- Tweak tests to run (or be skipped) against Firebird
- Fix to BooleanDecoder
- Add statistical/linear regression function definitions in CommonFunctionFactory
- Added the relevant functions to other dialects where I could verify they apply
- Fix for unions with parenthesized selects
- Add casts for parameters in functions
2021-03-22 19:08:05 +01:00
Andrea Boriero
0864c6e711
Fix test failures
2021-03-22 17:56:34 +01:00