Čedomir Igaly
445f95fb62
HHH-18829 Main:
...
- Hibernate Processor - create ID class in meta data class if entity class with more than
one ID component is not annotated with @IdClass; property order must be preserved
- Hibernate Core - if entity class has more than one ID component, but is not annotated with @IdClass
entity binder should try to use ID class from metamodel if generated
2024-12-05 19:31:53 +01:00
Čedomir Igaly
b9351cffc6
HHH-18829 Test:
...
- Hibernate Processor - generate ID class in metadata class if entity not annotated with @IdClass;
order of record components must match order of properties in entity class
- Hibernate Core - check if ID class has been properly generated with preserved order of components
- Annotated existing test entity classes with @Exclude when ID class can not be generated without causing compilation errors
2024-12-05 19:31:53 +01:00
Gavin King
158771bbfa
fix two warnings
2024-12-05 18:39:05 +01:00
Gavin King
87df79a3c4
remove unnecessary code
...
cc @cigaly
2024-12-05 18:39:05 +01:00
Gavin King
e4e1b59a1d
HHH-18863 allow index creation to be disabled in processor
...
also cache enum results read from index
2024-12-05 14:56:39 +01:00
Gavin King
83110b4638
HHH-18863 allow index creation to be disabled in processor
...
also cache enum results read from index
2024-12-05 14:56:39 +01:00
Gavin King
fdae11f791
clean up some minor formatting / code style issues
2024-12-04 22:39:16 +01:00
Čedomir Igaly
d3a1ebd0e2
HHH-18693 Changed code to allow creation of metadata for inner static non-private classes
...
Generaed metadate class for inner class A.B is A_.B_
2024-12-04 20:05:05 +01:00
Čedomir Igaly
d91d87c516
HHH-18693 Changed name generation for metamodel classes and sources
...
Generated metadata for inner class A.B is A_.B_
Path source for inner class is identical to path source for enclosing class
2024-12-04 20:05:05 +01:00
Čedomir Igaly
dcdeb04a13
HHH-18693 Test case with inner classes
...
Test case for Jakarta Data processing with inner classes
Changed existing test class to properly check generated metamodel class
@Exclude-ing "troublemakers" with illegal URI character(s) in entity name
2024-12-04 20:05:05 +01:00
Čedomir Igaly
a38a300a32
HHH-18868 Array annotated with one of @ManyToMany, @OneToMany, or @ElementCollection should be represented with ListAttribute, not SingularAttribute
2024-12-04 13:52:48 +01:00
Čedomir Igaly
212d4b676e
HHH-18868 Test case "borrowed" from Core, slightly adapted
2024-12-04 13:52:48 +01:00
Marco Belladelli
8dca8637a8
HHH-18683 Change metamodel implementations to comply with JPA spec
2024-11-22 17:12:04 -06:00
Gavin King
e7c3f52499
minor code style issues in the query validator
2024-11-22 17:55:34 +01:00
Christian Beikov
c02eae1d89
HHH-16160 Fix some XML related issues that came up
2024-11-22 11:18:22 +01:00
Gavin King
de3408662c
HHH-18863 change the way enum types -> values are cached to avoid lookups
2024-11-20 19:18:06 +01:00
Gavin King
ece2981ae8
modernize code in ProcessorSessionFactory
2024-11-20 19:18:06 +01:00
Gavin King
e24582a6ef
HHH-18863 probably more efficient way to detect if a class is a Panache thing
2024-11-20 19:18:06 +01:00
Gavin King
453f0ff074
improve exception messages and logging related to tx management
...
along with some minor aesthetic code cleanups
2024-11-20 12:06:49 +01:00
Koen Aers
707c3a788f
HHH-18644 - New and improved hibernate-maven-plugin
...
Signed-off-by: Koen Aers <koen.aers@gmail.com>
2024-11-19 11:27:23 -06:00
Čedomir Igaly
b1ee3d4334
HHH 18705 - Hibernate processor creates bad TypedReferenceQuery when @Entity have name attribute ( #9064 )
...
- entityType moved into org.hibernate.processor.Context
- result/type(returnType) moved into new utility class org.hibernate.processor.util.SqmTypeUtils
2024-11-16 16:11:35 +01:00
Gavin King
d784d6a808
clean up the MappingMetamodel interface
...
- deprecate some operations
- remove some already-deprecated operations
2024-11-15 20:00:24 +01:00
Steve Ebersole
0b856f531d
add better test for TypedQueryReference in metamodel
2024-11-15 10:13:47 +01:00
Steve Ebersole
538cad670f
fix hibernate-scan-jandex definitions
2024-11-13 17:41:38 -06:00
Gavin King
65b9b43756
add Order.reversedIf() and ignoringCaseIf() to simplify generated code
2024-11-13 09:29:27 +01:00
Gavin King
3457b2d283
HHH-18826 mappedBy validation in Processor
...
tolerate a mappedBy which refers to a parent id field rather than an association
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-08 10:12:20 +01:00
nathan.xu
2eeb6153ff
HHH-18754 improve HQLParser's error listener usage in StandardHqlTranslator
2024-11-06 21:36:28 -06:00
Marco Belladelli
1c87d73d2e
HHH-18569 Don´t implicitly cast when using a subtype attribute name with Criteria API
2024-11-04 10:35:19 +01:00
Gavin King
d25a86b12d
minor fix to generated @see jdoc annotation in @Find method
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-10-25 01:34:41 +02:00
Gavin King
743691e3b2
HHH-18761 add test
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-10-24 14:07:22 +02:00
Gavin King
fb7602a2e5
HHH-18761 fix generation of named query method in presence of Jakarta Data
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-10-24 14:07:22 +02:00
Steve Ebersole
dd8e186416
HHH-18644 - New and improved hibernate-maven-plugin
2024-10-22 08:50:09 -05:00
Andrea Boriero
93af5f2fb1
HHH-18712 Warning about attempts to update an immutable entity for normal (not immutable) entity
2024-10-17 13:45:32 +02:00
Gavin King
599a85de11
respect @Nonnull annotation on @Find method parameters
2024-10-04 12:34:22 +02:00
Gavin King
d5102ff9eb
fix a bug in generation of @Find method for @NaturalId fields
...
StatelessSession does not have a byNaturalId() method
2024-10-03 13:45:26 +02:00
Gavin King
f474cacf8a
more improvements to generated Javadoc in Hibernate Processor
2024-10-02 20:36:32 +02:00
Gavin King
cf626df3db
don't generate "auxiliary" members for Jakarta Data static metamodel
...
since it doesn't seem like these are very usueful with the repository
programming model
2024-10-02 18:23:36 +02:00
Gavin King
c517833758
add toplevel javadoc to generated classes
2024-10-02 18:23:36 +02:00
Gavin King
054aeff78b
completely remove checkstyle and replace it with a simple regex check
...
This is ~ 2 orders of magnitude faster on my machine, so it can be
executed as part of the compileJava task. Also, it actually logs the
failures, instead of making me go hunt for them in some generated
HTML-based report.
2024-09-30 13:10:09 -05:00
Andrea Boriero
fee9e86579
HHH-18457 Remove deprecated org.hibernate.Metamodel and org.hibernate.metamodel.spi.MetamodelImplementor
2024-09-26 17:33:46 +02:00
Gavin King
1568c5284f
HHH-18667 attempt to fix by making TypeConfiguration nonstatic
2024-09-25 18:38:33 +02:00
Gavin King
f929a78948
HHH-18649 nice Javadoc for static TypedQueryReferences
2024-09-23 09:56:27 +02:00
Gavin King
ec0f78d8c7
HHH-18649 populate TypedQueryReference in static metamodel
...
also rename two enums since "metamodel" is a word
2024-09-23 08:42:28 +02:00
Gavin King
8b83a53678
HHH-18649 more work on TypedQueryReference in static metamodel
2024-09-21 16:20:52 +02:00
Gavin King
79d3a3410d
squash some warnings in AnnotationMetaEntity
2024-09-21 16:20:52 +02:00
Gavin King
e13efce86b
HHH-18649 TypedQueryReference and EntityGraph in static metamodel
2024-09-21 16:20:52 +02:00
Gavin King
d53498910a
cleanup processor StringUtil
2024-09-21 16:20:52 +02:00
Gavin King
09c627c0b2
fix uppercasing of names in processor to comply with JPA 3.2 spec
2024-09-21 16:20:52 +02:00
Čedomir Igaly
b25dc774ea
HHH-18500 Added slightly modifed existing test case with addition of module-info.java and set extend enhancement flag
2024-09-19 18:58:35 +02:00
Gavin King
f0f96916ad
abbreviated source header
2024-09-16 21:26:00 +02:00