|Hibernate-CDO [message #615404]
||Wed, 06 February 2008 06:02
| Martin Taal
Registered: July 2009
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
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: firstname.lastname@example.org - email@example.com
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.01750 seconds