HHH-17504 - Ongoing JPA 32 work HHH-17350 - Work on hibernate-models, XSD and JAXB HHH-16114 - Improve boot metamodel binding HHH-15996 - Develop an abstraction for Annotation in annotation processing HHH-16012 - Develop an abstraction for domain model Class refs HHH-15997 - Support for dynamic models in orm.xml HHH-15698 - Support for entity-name in mapping.xsd
This commit is contained in:
parent
724da112e5
commit
f26bfa56f0
|
@ -489,10 +489,11 @@ public class EntityBinder {
|
|||
final Class<?> idClassValue = classWithIdClass.getAnnotationUsage( IdClass.class ).getClassDetails( "value" ).toJavaClass();
|
||||
final ClassDetails compositeClass = context.getMetadataCollector().getSourceModelBuildingContext().getClassDetailsRegistry().resolveClassDetails( idClassValue.getName() );
|
||||
final TypeDetails compositeType = new ClassTypeDetailsImpl( compositeClass, TypeDetails.Kind.CLASS );
|
||||
final TypeDetails classWithIdType = new ClassTypeDetailsImpl( classWithIdClass, TypeDetails.Kind.CLASS );
|
||||
|
||||
final AccessType accessType = getPropertyAccessType();
|
||||
final PropertyData inferredData = new PropertyPreloadedData( accessType, "id", compositeType );
|
||||
final PropertyData baseInferredData = new PropertyPreloadedData( accessType, "id", compositeType );
|
||||
final PropertyData baseInferredData = new PropertyPreloadedData( accessType, "id", classWithIdType );
|
||||
final AccessType propertyAccessor = getPropertyAccessor( compositeClass );
|
||||
|
||||
// In JPA 2, there is a shortcut if the IdClass is the Pk of the associated class pointed to by the id
|
||||
|
|
Loading…
Reference in New Issue