RE: [Hibernate] Hibernate and EMF integration

2005-06-06 Thread Mike Kanaley
m Eclipse. It requires the following plugins: org.eclipse.emf.common org.eclipse.emf.ecore org.eclipse.emf.ecore.xmi This is 5 jars files (2 resource bundle jars are needed) for a total of about 700K. -mike > -----Original Message----- > From: baliuka juozas [mailto:[EMAIL PROTECTED] > Sent: Monda

Re: [Hibernate] Hibernate and EMF integration

2005-06-06 Thread baliuka juozas
This is one of examples ("containment" with "opposite" association), but generated code depends on model too, "reference" will be generated in different way and you need to know model to persist it in the right way (generated code has meta information). It is not a good idea to asume generated cod

Re: [Hibernate] Hibernate and EMF integration

2005-06-06 Thread Max Rydahl Andersen
And this code is auto-generated into your "domain" classes ? Damn - EMF is way more intrusive than I thought. But anyhow - "elements" is some field, right ? Then hibernate can set it! Regarding getting the "owning element" into the collection. Can only tell that PersistentCollection.setOwner()

Re: [Hibernate] Hibernate and EMF integration

2005-06-06 Thread baliuka juozas
It looks something like this: public EList getElements() { if (elements == null) { elements = new EObjectContainmentWithInverseEList(MyElement.class, this, MyGenPackage.ELEMENTS_FEATURE_ID, MyGenPackage.PARENT_FEATURE_ID); } return elements; } This stu

Re: [Hibernate] Hibernate and EMF integration

2005-06-05 Thread Max Rydahl Andersen
1. Note that EMF owns the instantiation of the collection. An application (or Hibernate) cannot call setPlayers since it does not exist. so how does EMF set it ? /max --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you

RE: [Hibernate] Hibernate and EMF integration

2005-06-05 Thread Mike Kanaley
ven’t gotten to that yet.   Thanks so much for your time. -mike         From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Saturday, June 04, 2005 11:59 AM To: Mike Kanaley; hibernate-devel@lists.sourceforge.net Subject: RE: [Hibernate] Hibernate and EMF integration   Hi Mike,  

RE: [Hibernate] Hibernate and EMF integration

2005-06-04 Thread Gavin King
Hi Mike,   I’m not aware of any other effort to do this. It should be straightforward, however, given the architecture of HB3.   Gavin   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kanaley Sent: Friday, 3 June 2005 9:35 PM To: hibernate-devel@lists.sour