Issues
- Make TypedParameterValue a recordHHH-19340Gavin King
- Better leverage for-update-of to help minimize situations where follow-on is neededHHH-19339
- Improve performance of follow-on lockingHHH-19338
- Only perform follow-on locking when *explicitly* asked toHHH-19337
- Proper implementation for JPA extended locking scopeHHH-19336
- Redesign follow-on lockingHHH-19335
- CCE arising from tuple passed to HQL position() functionHHH-19334Gavin King
- Calling flush before query execution may cause PropertyValueException: Detached entity with generated idHHH-19333
- Figure out BulkManipulationTest issues with CockroachDBHHH-19332Karel Maesen
- query plan caching generates incorrect SQL, not taking parameters type into accountHHH-19331
- Error in lockstring generation in PostgreSQLHHH-19330Resolved issue: HHH-19330Jan Schatteman
- AssertionError visiting roots in query joinsHHH-19329
- @NaturalIdClassHHH-19328Gavin King
- overload SF.addNamedQuery() to take TypedQuery and return TypedQueryReferenceHHH-19327Resolved issue: HHH-19327Gavin King
- Jakarta Data CrudRepository is generated without Types in UpdateAll, InsertAll and SaveAll MethodsHHH-19326
- Upgrade to Jandex 3.3.0HHH-19325Resolved issue: HHH-19325Steve Ebersole
- Switch tests using hbm.xml to use mapping.xmlHHH-19324
- Add a CI job in the Hibernate ORM project for Hibernate ReactiveHHH-19323
- Batched unidirectional one-to-many update failingHHH-19322
- Improve inline documentation for @SuppressWarnings in registerStoredProcedureParameter, getResultList, and unwrap methodsHHH-19321Resolved issue: HHH-19321
- Assigned id value is not passed into BeforeExecutionGenerator#generate() method when allowAssignedIdentifiers() is true and id has been assignedHHH-19320Resolved issue: HHH-19320Marco Belladelli
- StatelessSession.findMultiple() accepting a LockModeHHH-19319Resolved issue: HHH-19319Gavin King
- follow-on locking and StatelessSessionHHH-19318Resolved issue: HHH-19318Gavin King
- Mark org.hibernate.boot.models as incubatingHHH-19317Steve Ebersole
- subselect fetching defined in maping.xml not honoredHHH-19316
- SINGLE_TABLE inheritance makes treat() pick wrong columns when multiple subclasses have a field with the same nameHHH-19315
- StackOverflowException when using onConflict with createCriteriaInsertValues and createCriteriaInsertSelectHHH-19314Andrea Boriero
- EntityGraph and OneToOne relationship is loading twice as many queriesHHH-19313
- BytecodeProviderImpl throwing java.lang.IndexOutOfBoundsExceptionHHH-19312
- NPE with Query Cache, Left Join Fetch, Inheritance on Both Sides, and No AssociationHHH-19311
- Simplified declaration of type for basic mappings in XMLHHH-19310
- Switch to Central Publishing Portal API for publishing to Maven CentralHHH-19309Marko Bekhta
- lock timeoutsHHH-19308
- NPE when entity class missing from persistence.xml is id of another entityHHH-19307Jan Schatteman
- Composite generator may not respect the event types of generators it consits ofHHH-19306Resolved issue: HHH-19306Marko Bekhta
- NPE in EntityEntryContext nonEnhancedEntityXref.get( entity )HHH-19305
- NPE in ResultSetMappingProcessor when using createNativeQuery with {x.*} notation and Entity with Embeddable that contains relational mappingsHHH-19304
- validate @Id fields against @IdClass in ProcessorHHH-19303Resolved issue: HHH-19303Gavin King
- composite ids with no id classHHH-19302
- Must import FQCN when generating metamodel class for inner Jakarta Data repository interfaceHHH-19301Resolved issue: HHH-19301Čedomir Igaly
- more ConstraintKindsHHH-19300Resolved issue: HHH-19300Gavin King
- <element-collection/> with LIST classification interpreted as BAGHHH-19299
- add convenience overloads of StatelessSession.get() which default GraphSemantic.LOADHHH-19298Resolved issue: HHH-19298Gavin King
- Register json functions in SingleStore community dialectHHH-19297Oleksandr Yeliseiev
- overload createSelectionQuery() to accept an EntityGraph instead of a result classHHH-19296Resolved issue: HHH-19296Gavin King
- Foreign keys are dropped when using schema = "public" after migrating to Spring Boot 3HHH-19295
- NodeBuilder collection*() doesn't work with enum collectionsHHH-19294
- Criteria isMember() doesn't work with collections mapped as arrayHHH-19293Resolved issue: HHH-19293
- Significant Memory Increase After Upgrading from Spring Boot 3.3.5 to 3.4.4HHH-19292
- Expressions.nullExpresion() in querydsl result in NPE in SqmExpressible with named parametersHHH-19291Resolved issue: HHH-19291Andrea Boriero
50 of
@NamedNativeQueries broken on @MappedSuperclass abstract classes
Description
Attachments
1
Created April 23, 2021 at 2:25 AM
Updated July 5, 2021 at 2:36 PM
Activity
Ivo HrádekJuly 5, 2021 at 2:35 PMEdited
I was looking on this and it seems that from fix of HHHH-14499 [1], classes annotated with MappedSuperclass
are skipped and analyzed “indirectly” through their children.
In your example, your MappedSuperclass
is not inherited by any entity and hence skipped. Therefore Hibernate does not register any @NamedNativeQuery
.
[1]
5.4.30.Final breaks @NamedNativeQueries on @MappedSuperclass abstract classes
Latest version of hibernate does not find NamedNativeQueries. All previous version including 5.4.29.Final work with no errors.
Steps to reproduce the error:
open attached project hibernate-orm-5-test
run ORMUnitTestCase.java test case
test will complete succesfully
edit project pom
change version.org.hibernate value to 5.4.30.Final
rerun test, test will fail