Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Hibernate-CDO
Hibernate-CDO [message #615404] Wed, 06 February 2008 06:02
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Eike,
I can see that there is code to initialize a cdopackage from an ecore string. I remember you said
that the cdo-server did not depend on emf. This means that the initialization of the cdopackage from
an ecore string is always used on the client, right?

Regarding persisting the cdopackageimpl through hibernate. Hibernate requires a class to have a
no-arg constructor. In addition it is easier if the members are all settable/gettable through
accessors. I have attached a patch to the bugzilla for this.

Some other smaller questions:
- Would it be possible to set the CDOPackageManager in the CDOPackage in the
CDOPackageManager.addPackage method instead of in the constructor? Then the persistence layer (when
reading the cdopackage from the db) does not need to do that.
- What is the purpose of CDOClassProxy?
- What is the purpose of the CDOIDMetaRange?

One other thing I noticed in EMFUtil is that you use a direct XMIResource to do the translation. I
am not sure if this works if you have multiple epackages which refer to eachother. Afaik to get this
working correctly a resourceset should always be used so that the lookups for other packages are
done through the epackageregistry.

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:SQL handling in CDO
Next Topic:Hibernate-CDO
Goto Forum:
  


Current Time: Sat Oct 31 02:38:29 GMT 2020

Powered by FUDForum. Page generated in 0.01750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top