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
Andrea Boriero
619a123c8d
Fix DriverManagerRegistrationTest failure
2021-03-22 14:22:24 +01:00
Andrea Boriero
c3df793dbe
HHH-14509 : Git master -> main branch renaming
2021-03-22 12:38:00 +01:00
Andrea Boriero
96d103215c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-03-22 12:26:31 +01:00
Steve Ebersole
6d49d1c49f
re-enable tests
2021-03-19 16:24:59 -05:00
Steve Ebersole
cc105596b4
re-enable tests
2021-03-19 15:51:45 -05:00
Steve Ebersole
12fb58f6b9
re-enable tests
2021-03-19 15:25:08 -05:00
Steve Ebersole
2589671fa1
re-enable tests
2021-03-19 13:56:57 -05:00
Steve Ebersole
725faa258f
HHH-14509 : Git master -> main branch renaming
2021-03-19 10:59:03 -05:00
Christian Beikov
e29f616d77
Add Oracle specific SqlTypeDescriptor for Boolean that binds with type BIT for null boolean
2021-03-18 20:19:03 +01:00
Christian Beikov
5b0b822717
Move tests to orm/test and fix query cache stats, native query variable substitution and named query support as loader
2021-03-18 20:19:03 +01:00
Andrea Boriero
3e32e15c0a
Avoid new join sqm path creation when it already exists
2021-03-18 13:18:28 -05:00
Andrea Boriero
4144c4af4c
Fix Criteria NPE for named parameters when paramClass is a Collection
2021-03-18 15:06:55 +01:00
Gautham Kumar
b4bf58188c
HHH-14449 : ResultStream closing is not properly handled
2021-03-18 07:22:42 -05:00
Andrea Boriero
86c024a245
Fix Cannot resolve path with EmbeddedId hql queries not using aliases
2021-03-18 11:24:35 +01:00
Steve Ebersole
31b1627baa
HHH-14506 - IdentifierGenerator changes
...
- HHH-14491 - Apply default allocation/increment size for @GeneratedValue(AUTO)
- HHH-14492 - Prefer sequence-per-entity (hierarchy) by default
- HHH-14497 - Drop `hibernate.id.new_generator_mappings` & `hibernate.model.generator_name_as_sequence_name`
- enabled existing tests and convert to JUnit5
2021-03-17 18:00:22 -05:00
Joseph B. Ottinger
d963acf443
HHH-14508 : Fixing invalid conversion specifier
2021-03-17 15:06:06 -05:00
Jan Schatteman
7695f03bf9
HHH-14503 - Migration of tests from jpa/test to orm/test/jpa
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-03-16 17:58:45 +01:00
Christian Beikov
3f2afe6b40
Move tests from cfg, dialect, id/enhanced, jdbc to orm/test and fix SQL Server 2005 limit handler issue, as well as sqm function return type resolver issue
2021-03-16 17:58:34 +01:00
Andrea Boriero
222e3fb697
Fix wrong order in SQL TableGroupJoin rendering
2021-03-16 13:49:03 +01:00
Andrea Boriero
6c3d0d86dc
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-16 10:43:42 +01:00
Sanne Grinovero
2c39bc0ac6
HHH-14502 Iterations and memory retention improvements for processing of PropertyContainer metadata
2021-03-15 17:13:27 +00:00
Andrea Boriero
9f22dafe17
HHH-14499 Explicitly listing mapped classes which are @MappedSuperClass might break narrowing down of generics
2021-03-15 16:44:21 +00:00
Andrea Boriero
394d6ab2d4
HHH-14499 Add test for issue
2021-03-15 16:44:21 +00:00
Andrea Boriero
d28b719c2c
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-15 10:46:40 +01:00
randymay
44d78d9b85
HHH-12076 Fix index out of bounds exception and allow table group joins for collection joins as well
2021-03-12 14:53:13 +01:00
Chris Cranford
fd73a1af85
Use dialect default precision for additional types
2021-03-12 08:32:07 +01:00
Chris Cranford
79a0c325e9
Move null check into lambda for DelayedCollectionInitializer
2021-03-12 08:32:07 +01:00
Chris Cranford
c2569bde4c
Pass sorted collection comparator as ctor argument
2021-03-12 08:32:07 +01:00
Chris Cranford
5cf052775b
Remove UnsupportedOperationException in ctor
2021-03-12 08:32:07 +01:00
Chris Cranford
44719e9bb2
Avoid NPE when resolving collection key for delayed collections
2021-03-12 08:32:07 +01:00
Chris Cranford
71f633a8f7
Set comparator on Persistent SortedSet and SortedMap collection instances
2021-03-12 08:32:07 +01:00
Chris Cranford
4292d118ad
Enforce dialect's default timestamp precision
2021-03-12 08:32:07 +01:00
Chris Cranford
87a40f6c2f
Set strategySelector before reflectionOptimizer is resolved
2021-03-12 08:32:07 +01:00
Christian Beikov
06d2a0c23e
Use FK descriptor instead of target entity identifier
2021-03-12 08:06:48 +01:00
Christian Beikov
52684bba26
Fix concurrency issue in QueryCacheTest
2021-03-12 08:06:33 +01:00
Christian Beikov
d1445efd82
HHH-9663 Implement support for orphan removal of assocations within embeddables
2021-03-12 08:06:33 +01:00
Jaanus Hansen
8101e3e47d
HHH-9663 added failing test case for Embeddable orphanRemoval
2021-03-12 08:06:33 +01:00
Andrea Boriero
c58227241f
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-11 10:52:24 +01:00
Steve Ebersole
9952c09843
HHH-14491 - Apply default allocation/increment size for @GeneratedValue(AUTO)
...
HHH-14492 - Prefer sequence-per-entity (hierarchy) for @GeneratedValue(AUTO) by default
- added test as @FailureExpected to track this into 6.0
2021-03-10 16:23:42 -06:00
Christian Beikov
682678fbe5
Introduce FunctionExpression in SQL AST and remove shallowness handling in sqm to sql converter
2021-03-10 18:39:17 +01:00
Andrea Boriero
7934625688
Fix derby test failure
2021-03-10 18:37:22 +01:00
Andrea Boriero
60c4fbe099
SemanticQueryBuilder#visitPathExpression() cannot cast DomainPathPart to SqmExpression
2021-03-10 18:37:22 +01:00
Andrea Boriero
15b52460f3
BaseSqmToSqlAstConverter#consumeEntityJoin() postpone tableGroupJoin.applyPredicate after consuming implicit joins
2021-03-10 18:37:22 +01:00
Andrea Boriero
1905e8bba3
HHH-14482 Do not discard prior implicit join by key
2021-03-10 14:54:34 +01:00
Chris Cranford
a022127428
HHH-14482 Do not discard prior implicit join by key
2021-03-10 11:00:56 +01:00
Andrea Boriero
f2b79eef67
Fix issue with Column#getSqlType() for Columns which Type is an EntityType not referring to a PK
2021-03-10 10:54:38 +01:00
Jan Schatteman
2fb1cdcae1
Migrate more tests from jpa/test to orm/test/jpa
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-03-09 15:43:49 +01:00
Christian Beikov
56d90a0aa9
Implement non-select native query support and fix parameter binding ordering issues for select native queries
2021-03-09 09:40:55 +01:00
Christian Beikov
ce41447875
Migrate java type descriptor tests and fix JdbcTimestampTypeDescriptor
2021-03-09 09:09:49 +01:00
Christian Beikov
a3d2f1937e
Implement support for delayed collections with FKs based on non-primary keys
2021-03-09 09:09:07 +01:00
Christian Beikov
350fd81cf5
Switch from java.lang.Class to java.lang.reflect.Type in the metamodel to support parameterized types
2021-03-09 09:01:46 +01:00
Christian Beikov
4a1a084def
Fix StaticMetadataTest
2021-03-08 15:20:24 +01:00
Steve Ebersole
69564cd7c8
HHH-14478 : Allow DialectResolvers to be discovered by ServiceLoader
2021-03-08 08:14:05 -06:00
Andrea Boriero
47f7ca7ff5
Clean up BasicValue
2021-03-08 11:58:31 +01:00
Christian Beikov
b225beb3cc
Fix processing state issues with insert-select statements
2021-03-08 11:43:40 +01:00
Christian Beikov
ee52989647
Don't build session factory and entity manager eagerly and stop enforcing id class implements Serializable
2021-03-08 11:43:39 +01:00
Andrea Boriero
f7d421b6ff
Fix NPE with DelayedCollectionInitializer
2021-03-08 09:28:53 +01:00
Chris Cranford
711fb53505
Resolve JavaTypeDescriptor, if not explicitly specified, for StandardRowReader
2021-03-08 09:21:45 +01:00
Chris Cranford
9591bbb185
Fix NPE with DelayedCollectionInitializer
...
Since the collectionInstance has not been resolved when asked to resolve the
collection key, provided an overridden method to not register the resolution
listener to avoid the NPE.
2021-03-08 09:19:48 +01:00
Chris Cranford
79d2569618
Don't add superfluous "and" when there is no discriminator filter
2021-03-08 09:09:41 +01:00
Christian Beikov
a514460bb9
HHH-9182 Cleanup grammar ambiguity issues
2021-03-05 15:20:03 +01:00
Steve Ebersole
2ee5ed0e52
hibernate-testing cleanup
2021-03-05 07:28:41 -06:00
Andrea Boriero
6250942e7f
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-05 11:18:14 +01:00
Andrea Boriero
cb603a337b
Removed use of EntityPersister#getEntityTuplizer()
2021-03-04 17:29:26 +01:00
Steve Ebersole
ddf434df7e
HHH-14469 - Support schema-tooling on sub-sets of the relational model known to Hibernate
...
- @BootstrapServiceRegistry
- Support for filtering at schema-tooling level
2021-03-04 09:42:45 -06:00
Gavin King
7b7597f40e
modernize Interceptor + Lifecycle interfaces
2021-03-04 15:24:02 +01:00
Gavin King
b3aa7d0794
remove Serializable id from the Tuplizer stuff
2021-03-04 15:24:02 +01:00
Gavin King
d4aa643630
type ids as Object instead of Serializable
2021-03-04 15:24:02 +01:00
Christian Beikov
abfa2de1d4
Try cast instead of inlining
2021-03-04 12:57:31 +01:00
Christian Beikov
abbbd2d3fb
Merge AbstractSqlAstWalker into AbstractSqlAstTranslator
2021-03-04 12:57:31 +01:00
Christian Beikov
1ea675d58d
Apply requested changes
2021-03-04 12:57:31 +01:00
Christian Beikov
003fddccb5
Implement support for special parameter rendering through functions to support using certain Derby functions with parameters
2021-03-04 12:57:31 +01:00
Yoann Rodière
fb079d077c
HHH-14439 Test executing the same query with subselects a second time with different list parameters
...
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 08:35:23 +01:00
Yoann Rodière
81071a4594
HHH-14439 Clean up expanded list parameters before re-executing a query
...
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 08:35:23 +01:00
Vlad Mihalcea
ed3bbf15e4
HHH-13077 - Optimize query plan call count
2021-03-03 08:07:53 -06:00
johnniang
2d5d6061c5
HHH-14473 add test case
2021-03-03 11:06:13 +00:00
johnniang
f03dd44107
HHH-14473 Resolve managed class name with class loader as well
2021-03-03 11:06:13 +00:00
Sanne Grinovero
f7c85fad4a
HHH-14477 Log warnings about the use of Javassist as BytecodeProvider being deprecated
2021-03-03 10:57:35 +00:00
Gavin King
b6dc77280f
remove two unnecessary calls to deprecated getEntityTuplizer()
2021-03-03 08:58:28 +01:00
Christian Beikov
44f4f93a29
HHH-9182 Test and fix HQL rules to allow more expression types in aggregate functions
2021-03-03 08:34:12 +01:00
Gail Badner
34a361058d
HHH-14390 HHH-14466 : StackOverflowError loading inverse side of associations owned by associated entity ID
...
Improved code comments as recommended by Steve Ebersole.
2021-03-02 14:13:48 -08:00
Gail Badner
cb18fdb4f7
HHH-14390 : StackOverflowError with @Fetch(FetchMode.SELECT) mapped for entity with an ID that is a bidirectional one-to-one eager association
...
Move fix into FetchStyleLoadPlanBuildingAssociationVisitationStrategy
2021-03-02 14:13:47 -08:00
Gail Badner
2bacaabc37
HHH-14466 : StackOverflowError loading an entity with eager one-to-many if bidirectional and many-to-one side is the ID
2021-03-02 14:13:47 -08:00
Andrea Boriero
bd84bb69bd
Fix MetadataTest failures, the behaviour introduced by HHH-4702 has been reverted, SingularAttribute#getBindableJavaType() and SingularAttribute#getType().getJavaType() return Integer.class also for int attributes
2021-03-02 18:39:03 +01:00