Mark Rotteveel
d91e878c66
HHH-15812 Remove dialect checks due to fix in #5699
2022-12-06 11:38:51 +01:00
Mark Rotteveel
9290f8b754
HHH-15812 Firebird dialect improvements
2022-12-06 11:38:51 +01:00
Andrea Boriero
0745a2e294
HHH-15749 Hibernate fails when selecting grouped by entities in a specific order
2022-12-06 11:08:37 +01:00
Andrea Boriero
a2aca9127c
HHH-15749 Add test for issue
2022-12-06 11:08:37 +01:00
Gavin
cb35e0e734
HHH-15797 better error messages
...
1. include the SQL in some SQLGrammarExceptions where it was missing
2. append the SQL to the error message in JDBCException
3. don't wrap HibernateException in PersistenceException b/c it is one already
2022-12-05 22:40:13 +01:00
Gavin
239dfa30fa
HHH-15782 use a Generator for seeding/incrementing versions
...
add javadoc for version generation
2022-12-05 22:21:52 +01:00
Gavin
0228c3d185
HHH-15800 introduce EventType + EventTypeSets in place of the previous "two booleans" approach
...
I hope @sebersole likes this better.
re-deprecate GenerationTime since the way forward is EventType
2022-12-05 22:21:52 +01:00
Gavin
c09664711d
HHH-15800 clean up GenerationTiming
2022-12-05 22:21:52 +01:00
Gavin
b40d15e528
HHH-15782 cleaner impl of <timestamp source="db"/>
2022-12-05 22:21:52 +01:00
Gavin
075b268280
HHH-15800 create .generator and .binder packages and move new interfaces to them
2022-12-05 22:21:52 +01:00
Gavin
95aa852e15
HHH-15800 reverse previous work to standardizing on GenerationTiming
...
...and go in exact opposite direction to migrate to GenerationTime
2022-12-05 22:21:52 +01:00
Gavin
216fe0f615
HHH-15800 make Generator free of GenerationTiming
2022-12-05 22:21:52 +01:00
Gavin
1104d01d33
fix checkstyle failure
2022-12-05 21:58:09 +01:00
Steve Ebersole
f4a7be6b92
HHH-15795 - Create ValuedModelPart interface
2022-12-05 12:18:48 -06:00
Gavin
a4debae33a
HHH-15816 make @Immutable work at property level
2022-12-05 18:11:23 +01:00
Gavin
9526eb89b7
HHH-15813 add @Imported annotation
2022-12-05 17:51:45 +01:00
Andrea Boriero
c29f2eaf60
HHH-15744 HQL where clause parsing fails with StackOverflow exception
2022-12-05 17:05:58 +01:00
Andrea Boriero
5a89c34127
HHH-15744 Add test for issue
2022-12-05 17:05:58 +01:00
Andrea Boriero
0d20cea0b3
HHH-15713 UnknownTableReferenceException on @ElementCollection of @Embeddable containing a @MayToOne with a @ManyToMany
2022-12-05 14:06:07 +01:00
Markus Heiden
1b417126bf
HHH-15713 Add test case to reproduce bug
2022-12-05 14:06:07 +01:00
Andrea Boriero
404f1e15f4
HHH-15731 Add test for issue
2022-12-05 12:17:11 +01:00
Andrea Boriero
31fafb1d4f
HHH-15721 NullPointerException in BaseSqmToSqlAstConverter.visitJunctionPredicate with combination of treats
2022-12-05 11:55:35 +01:00
Andrea Boriero
4de7bf20b2
HHH-15721 Add test for issue
2022-12-05 11:55:35 +01:00
Andrea Boriero
90a395a366
Clean up CircularBiDirectionalFetchImpl, CircularFetchImpl and ModelPartContainer
2022-12-05 11:54:51 +01:00
Sanne Grinovero
d383042229
HHH-15811 Avoid secondary super-type cache pollution when casting to AttributeMapping
2022-12-04 23:07:20 +00:00
Sanne Grinovero
a7c3455274
HHH-15810 Avoid secondary super-type cache pollution when casting to EntityInitializer
2022-12-04 21:41:16 +00:00
Sanne Grinovero
8ebf3c8507
HHH-15809 Secondary super-type cache pollution mitigations for HibernateBasicProxy
2022-12-04 20:21:55 +00:00
Sanne Grinovero
ded4c433ac
HHH-15808 ByteBuddyProxyFactory#getHibernateProxy is triggering type pollution via generic PrivilegedAction
2022-12-04 17:21:14 +00:00
Gavin
bdc67f81b1
clarify some javadoc for @Immutable and optimistic locking stuff
2022-12-04 13:04:56 +01:00
franz1981
3c535c544f
HHH-15804 Avoid JDK functional interfaces in ManagedTypeHelper
2022-12-04 11:45:03 +00:00
Sanne Grinovero
c114d08ac2
HHH-15803 Have the default EmptyInterceptor avoid triggering type pollution
2022-12-03 23:28:12 +00:00
Mark Rotteveel
721b66c6d3
HHH-15801 IdentifierGeneratorHelper should compare column names case insensitively
2022-12-03 13:52:01 +01:00
Gavin
f91905c34a
unquote table/column names when inferring sequence name on postgres
2022-12-03 11:09:16 +01:00
Gavin
12682c0abd
slightly sanitize API of mapping package
2022-12-03 11:04:21 +01:00
Gavin
0359e01c77
very minor cleanup to ColumnReference
2022-12-03 09:51:02 +01:00
Gavin
5ad9677728
remove redundant call
2022-12-03 09:51:02 +01:00
Gavin
85bfed78c3
fix a potential source of NPEs
...
(though this code path isn't working anyway for other reasons)
2022-12-03 09:51:02 +01:00
Gavin
6596389e55
make @IdGeneratorType accept Generator
2022-12-02 18:44:51 +01:00
Gavin
eb6860d9d2
make @IdGeneratorType accept Generator
2022-12-02 17:58:40 +01:00
Gavin
9389295281
improve javadoc for Generator hierarchy
...
and make SelectGenerator a subclass of IdentityGenerator
2022-12-02 17:58:40 +01:00
Gavin
392b2f2364
update javadoc for InsertGeneratedIdentifierDelegate
2022-12-02 16:09:23 +01:00
Gavin
337919b766
kill off some awful code in IdentifierGeneratorHelper
...
- should make multi-column (post insert) id generators work by side effect
- also make StandardGenerator a mixin type interface
2022-12-02 16:09:23 +01:00
Gavin
4195772c15
generalize the InsertReturningDelegates to handle arbitrary InDatabaseGenerators
...
the bit limitation is that an InDatabaseGenerator can be multi-column, but all the
InsertReturningDelegates assume that they map exactly one IDENTITY column
2022-12-02 16:09:23 +01:00
Gavin
7b0ca427dd
remove nexus between Generators and InsertGeneratedIdentifierDelegates
...
this is certain a very debatable move, but I think it's necessary to
keep the layering intact - we don't want this very technical construct
hanging off the side of the Generator APIs, which are user-visible
2022-12-02 16:09:23 +01:00
Gavin
6a630e3515
make PostInsertIdentifierGenerator extend InDatabaseGenerator
2022-12-02 16:09:23 +01:00
Sanne Grinovero
4b2f8ff8ae
HHH-15793 Mitigate type pollution on ColumnReference#getExpressionType
2022-12-02 14:25:27 +00:00
Sanne Grinovero
ed26c3f8fa
HHH-15787 DefaultMergeEventlistener#onMerge is performing runtime services lookup
2022-12-02 11:21:18 +00:00
Sanne Grinovero
329ccaa7a1
HHH-15791 Avoid excessive Session casts to EventSource
2022-12-02 09:40:53 +00:00
Sanne Grinovero
6c2bff76c9
Update migration guide HHH-15791
...
HHH-15791 Avoid excessive Session casts to EventSource
https://github.com/hibernate/hibernate-orm/pull/5663
2022-12-02 09:38:00 +00:00
Steve Ebersole
6035ab8e66
HHH-15393 - Improve write-paths to use mapping model
2022-12-01 21:40:04 -06:00