Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-25 Thread Steve Ebersole
> Can we assume that, after 1) and 2) execute, all information (in the form of > hbm/annotations source) is available to resolve all existing associations? > > If anything is left unresolved, should it be an exception? I think it is reasonable to make that a rule. > > Can we assume that after 3)

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-25 Thread Gail Badner
gt; Sent: Friday, January 25, 2013 9:45:26 AM > Subject: Re: [hibernate-dev] MetadataSourceProcessor and associations > > ** DISCLAIMER : Its been a long time since I have been on the > metamodel > branch, so please excuse any misuse of class/interface names... > > Comments inl

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-25 Thread Steve Ebersole
y as envers currently does (creating hbm in memory and > ask hibernate to do the binding stuff) -- 4) > 2. create/change metamodel directly -- 3) > > >> >> >> Regards, >> Gail >> >> - Original Message - >>> >>> From: "Steve

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-24 Thread Strong Liu
Regards, > Gail > > - Original Message - >> From: "Steve Ebersole" >> To: "Gail Badner" >> Cc: "Hibernate hibernate-dev" >> Sent: Wednesday, January 23, 2013 11:16:23 AM >> Subject: Re: [hibernate-dev] Metad

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-24 Thread Hardy Ferentschik
Hi, as Steve is saying, you can basically mix and match hbm and annotation, however there is a caveat. Within one entity hierarchy you have to stick to one mapping approach. You cannot map the base class Animal in hbm and then use annotations for the subclass entity Dog. If the entities are n

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-23 Thread Gail Badner
uot;Steve Ebersole" > To: "Gail Badner" > Cc: "Hibernate hibernate-dev" > Sent: Wednesday, January 23, 2013 11:16:23 AM > Subject: Re: [hibernate-dev] MetadataSourceProcessor and associations > > What you mention is in fact possible. > > And I have

Re: [hibernate-dev] MetadataSourceProcessor and associations

2013-01-23 Thread Gail Badner
It seems that JoinColumnResolutionDelegate impls can have the same problem. - Original Message - > From: "Steve Ebersole" > To: "Gail Badner" > Cc: "Hibernate hibernate-dev" > Sent: Wednesday, January 23, 2013 11:16:23 AM > Subject: Re

[hibernate-dev] MetadataSourceProcessor and associations

2013-01-23 Thread Gail Badner
Is it possible for an entity containing one side of an association be mapped using annotations and the entity containing the opposite side of the association be mapped using an hbm mapping? For example, suppose Order has annotations: @OneToMany( mappedby="order" ) List Order.orderLines OrderLi