Re: [hibernate-dev] Metamodel - Entity primary key mappings

2014-04-09 Thread Steve Ebersole
@IdClass > class, while the PojoComponentTuplizer for the ID is expecting an entity > instance. > > Gail > > - Original Message - > > From: "Steve Ebersole" > > To: "hibernate-dev" > > Sent: Monday, April 7, 2014 4:45:18 PM > > S

Re: [hibernate-dev] Metamodel - Entity primary key mappings

2014-04-07 Thread Steve Ebersole
What I am thinking at the moment is to change up org.hibernate.metamodel.spi.binding.EntityIdentifier to look like: public class EntityIdentifier { private final EntityBinding entityBinding; private EntityIdentifierNature nature; private IdentifierAttributeBindings attributeBindings; priv

[hibernate-dev] Metamodel - Entity primary key mappings

2014-04-07 Thread Steve Ebersole
I've been spending a lot of time the last 2 weeks trying to get a good "mental model" as to how to best model the information pertaining to an entity's primary key. Most of this effort went into trying to understand JPA's "derived identity" support. First and foremost I want to get away from mode