Commit Graph

8319 Commits

Author SHA1 Message Date
Christian Beikov f048ea8205 Introduce a special TimeZoneStorageType#NORMALIZE_UTC variant 2022-03-25 20:53:05 +01:00
Christian Beikov f2aa533dfc Switch back to numeric(21) with nanosecond resolution as fallback for mapping Duration to retain backwards compatibility 2022-03-25 20:20:28 +01:00
Christian Beikov 6801ff0f26 Introduce option to configure how to store java.time.Duration 2022-03-25 20:20:28 +01:00
Christian Beikov 7020a1a563 Make sure timestampdiff returns a double for the SECOND unit as per JPA 3.1 2022-03-25 20:20:28 +01:00
Christian Beikov 5a2f92588c Do not reuse join that is treat joined 2022-03-25 15:27:14 +01:00
Andrea Boriero 99ed18c228 Add additional tests 2022-03-25 13:46:12 +01:00
Andrea Boriero 1a1a6c22f1 Fix @ForeignKeyey(ConstraintMode.NO_CONSTRAINT) throwing EntityNotFoundException 2022-03-25 13:46:12 +01:00
Steve Ebersole 33a7133695 HHH-15139 - Improvements for QueryInterpretationCache
- improvements to SqmInterpretationsKey
- improvements to AbstractFetchParent
2022-03-25 07:16:33 -05:00
Christian Beikov 6fd8034ec5 Use string based storage as fallback for JSON 2022-03-24 21:29:37 +01:00
Christian Beikov ad806ffc83 Fix compile error 2022-03-24 21:23:00 +01:00
Christian Beikov ce298a1566 Make use of type variable for a few CompositeUserType methods 2022-03-24 09:29:45 +01:00
Sanne Grinovero bee5bae7b6 HHH-15138 Further simplify BoundedConcurrentHashMap by removing support for NONE eviction 2022-03-23 18:22:42 +00:00
Sanne Grinovero 04bfdd49ab HHH-15138 Style and formatting fixes in BoundedConcurrentHashMap 2022-03-23 18:22:42 +00:00
Sanne Grinovero 1d1a142345 HHH-15138 Remove support for Eviction Listeners in BoundedConcurrentHashMap 2022-03-23 18:22:42 +00:00
Andrea Boriero 52d15cf769 Re-enabled additional tests 2022-03-23 18:21:09 +01:00
Steve Ebersole cc02b926fb HHH-15139 - Improvements for QueryInterpretationCache
- improvements to SqmInterpretationsKey
2022-03-23 11:32:13 -05:00
Christian Beikov 75a8ad1851 HHH-15135 Respect precision in temporal version types when generating timestamps 2022-03-23 16:20:18 +01:00
Steve Ebersole 8470d6db5b HHH-15132 - Improvements for NavigablePath
- additional refactoring of uses of `NavigablePath#getFullPath`
2022-03-22 21:26:41 -05:00
Steve Ebersole e496ec45ea HHH-15132 - Improvements for NavigablePath
- dropped `NavigablePath#fullPath` field - `#getFullPath` is now "(re)built" on demand
- adjust uses of `NavigablePath#getFullPath`
- refactor `NavigablePath` constructors
2022-03-22 21:26:41 -05:00
Steve Ebersole f474449e7d HHH-15132 - Improvements for NavigablePath
Begin breaking down "full path"
2022-03-22 21:26:41 -05:00
Scott Marlow 73153be99d remove spaces from hibernate.connection.datasource, hibernate.connection.pool_size, hibernate.connection.isolation
Signed-off-by: Scott Marlow <smarlow@redhat.com>
2022-03-22 14:55:36 -05:00
Steve Ebersole d276075ade HHH-15132 - Improvements for NavigablePath
Package move;
@Incubating
2022-03-21 02:53:56 -05:00
Christian Beikov fcb3664b08 Add some javadocs to TableGroupJoinProducer 2022-03-18 16:24:44 +01:00
Christian Beikov 2894f84d6e HHH-14487 Fix usage of wrong Map in PropertyAccessStrategyMapImpl 2022-03-18 15:22:45 +01:00
CHAPEL Guillaume c57d394445 HHH-15118 Fix duplicate ids with PooledOptimizer when sequence value is initialValue 2022-03-18 10:27:06 +01:00
Andrea Boriero e0e6050ba1 HHH-15117 ConstraintViolationException is thrown using same @SecondaryTable on two entities 2022-03-17 18:34:30 +01:00
Andrea Boriero 42e44f392b HHH-15117 Add test for issue 2022-03-17 18:34:30 +01:00
Christian Beikov 669d23319d Show an issue with BasicFormatterImpl 2022-03-17 18:34:21 +01:00
Benedikt Waldvogel 41741fb79c HHH-15065: Test that SQL statements are deterministic when using entity graphs 2022-03-17 18:33:34 +01:00
Andrea Boriero 3d39936728 HHH-15091 EntityManager.persist does not verify the existence of the one side of a many-to-one relationship 2022-03-17 17:35:50 +01:00
Andrea Boriero 2618a78f43 HHH-15091 Add test for issue 2022-03-17 17:35:50 +01:00
Andrea Boriero cb3690466f HHH-15098 Incorrect behavior when updating managed oneToMany collection on entity with naturalId 2022-03-17 17:33:00 +01:00
Andrea Boriero c35f495a7b HHH-15098 Add test for issue 2022-03-17 17:33:00 +01:00
Andrea Boriero 1d67993173 HHH-15111 MappingException is thrown for @JoinColumn with referencedColumnName on a @SecondaryTable 2022-03-17 17:28:55 +01:00
Andrea Boriero cd78676608 HHH-15115 Fix PostgreSQL SqmMultiTableMutationStrategy 2022-03-17 12:11:02 +01:00
Sanne Grinovero 6169a60ecd Always guard for Log level before producing log message parameters 2022-03-16 22:09:32 +00:00
Christian Beikov 2184a39dcf Temporarily disable a test for Oracle due to a bug in BasicFormatterImpl 2022-03-16 16:54:35 +01:00
Christian Beikov d17a6fbf85 Fix NPE with collection filter predicates when joins have no group alias 2022-03-16 16:54:35 +01:00
Christian Beikov 8cf0265f8d Make sure root virtual table group joins are rendered properly 2022-03-16 16:54:34 +01:00
Christian Beikov b227475489 Make sure the discriminator path uses the correct table group 2022-03-16 16:54:34 +01:00
Christian Beikov 20564a5547 Make sure DML updates do inserts into secondary tables when necessary 2022-03-16 16:54:34 +01:00
Christian Beikov 955e8265dc Do not expose id class embeddables through getManagedTypes 2022-03-16 16:54:34 +01:00
Christian Beikov 7f4a4afd64 Also create inverse model parts for nested embeddable attributes 2022-03-16 16:54:34 +01:00
Christian Beikov c548a79f0b Introduce special part name for FK target part to avoid issues with composite FK initializers 2022-03-16 16:54:34 +01:00
Christian Beikov 0ca38c8c87 Allow ordering query groups by attribute name and fix processing issue with nested set operations 2022-03-16 16:54:34 +01:00
Christian Beikov 246f1048a0 Add inverse NonAggregatedIdentifierMapping that uses VirtualIdEmbeddable as model part 2022-03-16 16:54:33 +01:00
Steve Ebersole 8c052054a8 Intermittent test failure (Sybase) 2022-03-15 12:35:45 -05:00
Steve Ebersole 9335d3efbf HHH-14993 - EAGER non-inverse collection throws StackOverflowError if `max_fetch_depth` not set 2022-03-15 09:41:36 -05:00
Steve Ebersole 38cffd0c8f HHH-14993 - EAGER non-inverse collection throws StackOverflowError if `max_fetch_depth` not set 2022-03-15 09:41:36 -05:00
Andrea Boriero 2d19bdbaf3 HHH-15113 Exception setting ParameterExpressions on Update Queries 2022-03-14 23:27:41 +00:00
Steve Ebersole 741b6b71f1 logging report 2022-03-11 14:45:43 -06:00
Steve Ebersole e16fbb6c31 report-tasks 2022-03-09 12:28:13 -06:00
Christian Beikov 293315ffa4 HHH-15105 Test and fix for NPE when access default query cache region statistics 2022-03-09 12:10:14 +01:00
Yoann Rodière a88170d24a HHH-15107 Upgrade to Mockito 4.3.1 2022-03-09 08:11:09 +01:00
Steve Ebersole 3a6ad2fd3a Fix test failure 2022-03-08 23:40:41 -06:00
Steve Ebersole 3dc0dd0a6f HHH-15114 - Clean up deprecations 2022-03-08 21:39:21 -06:00
Steve Ebersole 1fe1110f0b HHH-15106 - fk() SQM function 2022-03-08 21:00:08 -06:00
Steve Ebersole 415b28f116 HHH-15114 - Clean up deprecations 2022-03-08 20:24:14 -06:00
Jan Schatteman c46ec5a14e Removed deprecated AbstractEntityPersister.getIdentityDelegate()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 91a1ff81f8 Removed deprecated SharedSessionContractImplementor.getTimestamp()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 291e755686 Removed deprecated methods in ProxyFactoryFactory and NoneBasicProxyFactory
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 9fc2b3dea5 Removed deprecated LazyAttributesMetadata.getAttributesInSameFetchGroup(...)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 4b5d3e645b Removed deprecated SessionFactoryOptions.getStatelessInterceptorImplementor()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 2244ab8e61 Removed deprecated QueryEngine.DEFAULT_PARAMETER_METADATA_MAX_COUNT
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 4669fc7c4c Removed deprecated org.hibernate.mapping.AuxiliaryDatabaseObject
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 7931e9c755 Removed deprecated non-static methods from LobTypeMappings and NationalizedTypeMappings
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 8e068d7647 Removed deprecated SessionFactoryServiceInitiator.initiateService(SessionFactoryImplementor, SessionFactoryOptions, ServiceRegistryImplementor)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman b1ec3ab78b Removed deprecated Interceptor.onPrepareStatement(String sql)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 13527366c9 Removed deprecated setFlushMode from Session and SharedSessionContractImplementor
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 8b0f70f066 Removed deprecated MetadataBuildingOptions.getReflectionManager()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 41016674cb Removed deprecated InFlightMetadataCollector.getClassmateContext()
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Jan Schatteman 6564abe4c7 Removed deprecated transactionContext() from SharedSessionBuilder
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-03-08 18:42:18 -06:00
Christian Beikov 34b4e873df Get rid of StateArrayContributor 2022-03-08 23:10:35 +01:00
Christian Beikov af9edd50d6 Add SqlTypes.TIMESTAMP_UTC to as jdbc type for java.time.Instant 2022-03-08 23:05:09 +01:00
Christian Beikov 964e72f536 Implement support for TimeZoneStorageType.COLUMN 2022-03-08 23:05:09 +01:00
Christian Beikov fa750a9c26 Make LONGX types synonyms for X types again and remove unnecessary case labels 2022-03-08 21:59:49 +01:00
Christian Beikov 2c80250b0e Replace typeNames in Dialect with SqlType and SqlTypeRegistry that dialects contribute into 2022-03-08 21:59:49 +01:00
Christian Beikov 7a55c7b34b HHH-15071 Apply type inference in SQM for like predicate and avoid NPE in query parameters 2022-03-08 19:51:55 +01:00
Christian Beikov 3d55855a87 HHH-13694 fix numeric overflow exception for large sequence min values 2022-03-08 19:49:48 +01:00
Steve Ebersole 0af7ed353a HHH-15099 - Improve handling of associations marked with @NotFound
HHH-15106 - fk() SQM function
2022-03-08 06:22:03 -06:00
Steve Ebersole 362b4c0ac7 HHH-15106 - fk() SQM function 2022-03-08 06:21:50 -06:00
Andrea Boriero 6e6cc5f06e Fix subquery throwing SqlTreeCreationException( Found un-correlated path usage in sub query) 2022-03-08 12:55:27 +01:00
Christian Beikov 0a73425520 Flatten the junctions in the SQM model 2022-03-07 15:40:58 +01:00
Steve Ebersole 71e3b5277a HHH-15099 - Improve handling of associations marked with @NotFound
- test consolidation
2022-03-05 08:59:31 -06:00
Steve Ebersole 82feac6bd3 HHH-15099 - Improve handling of associations marked with @NotFound
- support for NotFound on logical 1-1 defined on JoinTable
2022-03-05 08:59:31 -06:00
Steve Ebersole ed5831f482 HHH-15099 - Improve handling of associations marked with @NotFound
- clean-up
2022-03-05 08:59:31 -06:00
Steve Ebersole c5ac528a24 HHH-15099 - Improve handling of associations marked with @NotFound
- database snapshot handling
2022-03-05 08:59:31 -06:00
Steve Ebersole ceb7df0c51 HHH-15099 - Improve handling of associations marked with @NotFound
- Javadoc improvements for `@NotFound`-related tests
2022-03-05 08:59:31 -06:00
Steve Ebersole d52ebfb41d HHH-15099 - Improve handling of associations marked with @NotFound
- Keep track of NotFoundAction into mapping model
- Fix tests with erroneous assertions about `@NotFound` associations allowed to be lazy
2022-03-05 08:59:31 -06:00
Steve Ebersole de97e8e1a4 HHH-15099 - Improve handling of associations marked with @NotFound
- Tests
2022-03-05 08:59:31 -06:00
Christian Beikov bdf8b2fc2e Fully generify and simplify UserType contract 2022-03-04 11:14:17 +01:00
Steve Ebersole e5c719b843 HHH-15099 - Improve handling of associations marked with @NotFound
- Tests
2022-03-03 16:13:49 -06:00
Steve Ebersole 2ced4caa2c NonLazyEntityFetch improvements 2022-03-03 16:04:42 -06:00
Steve Ebersole ec737a7f15 HHH-15099 - Improve handling of associations marked with @NotFound
- Disable physical foreign-key export for `@NotFound` mappings
2022-03-03 15:45:58 -06:00
Sanne Grinovero 572171e27f Jandex, Classmate and commons annotations shouldn't be listed as API 2022-03-03 19:23:58 +00:00
Christian Beikov e9b3066f93 Add sql type name and size information to selectable mapping 2022-03-03 10:34:26 +01:00
Yoann Rodière 3d8f5db3e0 HHH-15090 Allow passing unloaded types and a TypePool to ByteBuddyProxyHelper#buildUnloadedProxy
This is necessary to solve this bug in Quarkus.
2022-03-03 09:39:23 +01:00
Yoann Rodière 9dcd5e55b1 HHH-15090 Test lazy loading with extended bytecode enhancement and inheritance 2022-03-03 09:39:23 +01:00
Yoann Rodière e989f20b33 HHH-15090 Fix access to public field with extended bytecode enhancement returning null for entity lazy-loaded from polymorphic toOne association 2022-03-03 09:39:23 +01:00
Christian Beikov b6b500200b Use BAG for unowned OneToMany and throw an error if @OrderColumn is found on unowned ManyToMany 2022-03-02 17:02:53 +01:00