Commit Graph

629 Commits

Author SHA1 Message Date
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
Č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
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
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
Gavin King f0f96916ad abbreviated source header 2024-09-16 21:26:00 +02:00
Gavin King bbc325c26f spaces to tabs! 2024-09-16 21:26:00 +02:00
Gavin King de921ad473 cleanups by spotless 2024-09-16 21:26:00 +02:00
Andrea Boriero 1b0cc59913 HHH-18462 Provide alternatives to deprecated org.hibernate.engine.spi.Mapping 2024-09-16 11:45:54 -05:00
Gavin King 9f2beca226 add a comment 2024-09-14 12:29:10 +02:00
Gavin King 19d5895dd6 finally sort out handling of @Id and @Version in query validator
also remove 'this' hacks made obsolete by Steve's work on core
2024-09-14 12:29:10 +02:00
Gavin King 0c3b8fd819 unexpose the ServiceRegistry on SqmCreationContext + SqlAstCreationContext 2024-09-10 17:25:21 +02:00
Gavin King b4e26b3e32 refactor a bit the BindingContext hierarchy 2024-09-10 17:25:21 +02:00
Gavin King 9f91f2dbff major refactor to horrible instantiation of QueryEngine 2024-09-10 00:42:18 +02:00
Gavin King 2a999d68d2 enable Jakarta Data tests 2024-09-09 19:48:22 +02:00
Gavin King 7c30bbed2b very minor code cleanups
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-09-04 22:22:58 +02:00
Gavin King 1d12dc0499 HHH-18547, HHH-17114 add default implementations to UserType
and deprecate the wrong-signature nullSafeGet() method

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-31 10:45:48 +02:00