Commit Graph

14510 Commits

Author SHA1 Message Date
Gavin King f6e65dc91a tests for HHH-15663 and HHH-15570 2022-11-04 17:51:00 +01:00
Gavin King 383ffa56eb HHH-15663 add writable member to @Generated annotation
This is useful if you're using custom SQL, e.g. @SqlInsert.

Also improve the Javadoc surrounding all this stuff.
2022-11-04 17:51:00 +01:00
Gavin King aef9ab2425 HHH-15570 allow @SqlInsert, @SqlUpdate, @SqlDelete for secondary tables 2022-11-04 17:51:00 +01:00
Andrea Boriero 28b253512e HHH-15666 When a reference entry is found in the Second Level Cache there is not need to set its values 2022-11-04 16:15:54 +01:00
Andrea Boriero 865f28a5d5 HHH-15666 Add test for issue 2022-11-04 16:15:54 +01:00
Sanne Grinovero ca79c91c56 HHH-15662 ClasscastException caused by check for Managed rather than ManagedEntity 2022-11-04 08:54:05 +00:00
Sanne Grinovero bde7362d9c HHH-15634 Extracting reusable Type constants from ByteBuddy InlineDirtyCheckingHandler 2022-11-03 19:48:42 +00:00
Sanne Grinovero 93355272fd HHH-15634 Extracting constant for @Transient annotation in ByteBuddy Enhancer 2022-11-03 19:48:42 +00:00
Scott Marlow a40fea29c0 HHH-15656 use privileged action when invoking ScheduledExecutorService.shutdown
Signed-off-by: Scott Marlow <smarlow@redhat.com>
2022-11-03 17:41:28 +01:00
Scott Marlow 8f2325ed4a HHH-15655 use privileged operation when defining classes
Signed-off-by: Scott Marlow <smarlow@redhat.com>
2022-11-03 17:41:28 +01:00
Christian 11b968a2ee HHH-15571 Use Gradle BND Plugin for generating OSGI Bundle entries in Jar Manifest 2022-11-03 11:43:12 +01:00
Gavin King 0b34025f1a HHH-15652 add missing Session.remove(entityName, object) method
Since we deprecated delete() there's no blessed way to do this.
2022-11-02 19:21:00 +01:00
Gavin King bb0edab332 rewrite EntityBinder 2022-11-02 19:20:17 +01:00
Gavin King 3cd90d7615 clean up CollectionBinder and friends 2022-11-02 19:20:17 +01:00
Gavin King 38b4e8e01b very minor cleanups, and more Javadoc in BinderHelper 2022-11-02 19:20:17 +01:00
Gavin King e2f42cd0bc introduce ForeignKeyType and AnnotationJoinColumns.getReferencedColumnsType() 2022-11-02 19:20:17 +01:00
Gavin King 849246e3cd finally move propertyName from AnnotatedColumn 2022-11-02 19:20:17 +01:00
Gavin King e4c1d493e3 finally move context + joins from AnnotatedColumn 2022-11-02 19:20:17 +01:00
Gavin King 18003b92dc finally move propertyHolder from AnnotatedColumn 2022-11-02 19:20:17 +01:00
Gavin King 585522fde1 extract some little helper methods 2022-11-02 19:20:17 +01:00
Gavin King ec336f3a23 introduce AnnotatedColumns 2022-11-02 19:20:17 +01:00
Gavin King 653bf987bd introduce AnnotatedJoinColumns and remove deprecated stuff 2022-11-02 19:20:17 +01:00
Gavin King ce12d4a586 improve Javadoc to types in mapping package 2022-11-02 18:52:56 +01:00
Gavin King cbaf856e18 squash some generic type-related warnings 2022-11-02 18:52:56 +01:00
Jan Schatteman 9d62179d40 HHH-15175 - Remove support for database versions that are unsupported by vendors 6.2 edition 2022-11-02 14:31:49 +01:00
Christian Beikov a471bbea8c HHH-15648 Fix fetching association and using implicit path in condition 2022-11-02 11:53:23 +01:00
Sanne Grinovero 60e81a7a4d HHH-15651 Refactoring of common iterations in EntityEntryContext 2022-11-01 20:45:35 +00:00
Sanne Grinovero cdbf92fd71 HHH-15651 StatefulPersistenceContext#clear shouldn't need defensive copies for iteration 2022-11-01 20:45:35 +00:00
Sanne Grinovero 001de2b203 HHH-15651 Logging guard improvements in StatefulPersistenceContext 2022-11-01 20:45:35 +00:00
Sanne Grinovero bedbd402e6 HHH-15649 Additional performance fixes relating to Klass's _secondary_super_cache interaction with entity enhancement 2022-11-01 11:18:54 +00:00
Gavin King 77d1bdac4c Javadoc improvements for naming strategies and Any mappings 2022-11-01 11:56:19 +01:00
Christian Beikov e00ebd91f9 Replace deprecated set-output in GH actions workflow 2022-10-31 12:04:38 +01:00
Andrea Boriero 90b1cfe2c3 HHH-15634 Lazy basic property does not get updated on change: inline dirty checking, lazy basic properties are not upated when set to null 2022-10-31 11:45:31 +01:00
Andrea Boriero 6d99eb1068 HHH-15634 Lazy basic property does not get updated on change 2022-10-31 11:45:31 +01:00
Andrea Boriero ee372fad58 HHH-15634 Run the tests also without dirty checking enabled 2022-10-31 11:45:31 +01:00
Yoann Rodière d5aa85e90c HHH-15634 Test updating one or all of multiple lazy basic properties 2022-10-31 11:45:31 +01:00
Yoann Rodière b82d906841 HHH-15634 Test updating a single lazy property with no lazy group 2022-10-31 11:45:31 +01:00
Yoann Rodière 66daac53a2 HHH-15634 Fix naming of LazyBasicFieldAccessTest/LazyBasicPropertyAccessTest
For some reason they were reversed.
2022-10-31 11:45:31 +01:00
Christian Beikov 9bd269aa5d Fix test for HANA 2022-10-31 11:18:11 +01:00
Gavin King ecdd7e20cb remove more usages of some deprecated methods 2022-10-29 23:32:05 +02:00
Gavin King bb0541d754 remove more usages of some deprecated methods 2022-10-29 23:32:05 +02:00
Gavin King 6e8d609485 squash warnings + remove usages of some deprecated methods 2022-10-29 23:32:05 +02:00
Gavin King ce860e31ff put some annotations back in a very important test 2022-10-29 15:10:10 +02:00
Gavin King f676a1e2af deprecate some operations of AnnotatedJoinColumn
+ some light refactoring
2022-10-29 15:10:10 +02:00
Gavin King 257bfdb391 slightly improve some Javadoc on metamodel-related stuff 2022-10-29 11:11:23 +02:00
Gavin King f253d8f216 remove useless @JoinColumns annotation for mosts tests and examples 2022-10-29 02:09:00 +02:00
Gavin King 66776f6b78 simplify a method 2022-10-29 02:09:00 +02:00
Gavin King 749e5e6b38 HHH-15627 fix uninformative error message 2022-10-29 02:09:00 +02:00
Gavin King ed65962fb3 more binding work related to OneToOne and ManyToOne to ToOneBinder where it belongs
and stuff in common goes to BinderHelper
2022-10-29 02:09:00 +02:00
Gavin King 8b3030aa8b avoid passing property-level information via the first AnnotatedJoinColumn 2022-10-29 02:09:00 +02:00