Description:
|
org.hibernate.tuple.entity.EntityMetamodel#EntityMetamodel only checks if the property is a natural id or not, but it doens't take care of the property type, if the property is a component, then the org.hibernate.tuple.entity.EntityMetamodel#naturalIdPropertyNumbers is wrong, which causes exception be throwen at org.hibernate.event.spi.ResolveNaturalIdEvent#ResolveNaturalIdEvent due to "Entity [%s] defines its natural-id with %d properties but only %d were specified"
|