[teneo] delete help for newbie [message #500923] |
Mon, 30 November 2009 05:29  |
Eclipse User |
|
|
|
I know this topic is addressed many times but I still have no luck.
In my model I have a price category which can have sub price categories as children...when I create a subcategory and then try to delete it, I get the following exception:
Quote: | Unable to determine collection owner identifier for orphan-delete processing
|
can somebody give me a hint how to solve this....thanks!
|
|
|
|
|
|
|
|
Re: [teneo] delete help for newbie [message #501229 is a reply to message #501157] |
Tue, 01 December 2009 10:37   |
Eclipse User |
|
|
|
Hi Allon,
I have included your ecore package into a testcase. But before I spend time on building test data. Is it possible for
you to send me the data of your database or the code to create it?
gr. Martin
Allon Moritz wrote:
> here is the code
>
> Properties props = new Properties();
> props.setProperty(Environment.DRIVER,
> "org.apache.derby.jdbc.ClientDriver");
> props.setProperty(Environment.URL,
> "jdbc:derby://localhost:1527/ShopDB;create=true");
> props.setProperty(Environment.DIALECT,
> org.hibernate.dialect.DerbyDialect.class.getName());
> props.setProperty(Environment.SHOW_SQL, "true");
> HbDataStore hbds = (HbDataStore) HbHelper.INSTANCE
> .createRegisterDataStore("ShopDB");
> hbds.setProperties(props);
> hbds.setEPackages(new EPackage[] { ShopPackage.eINSTANCE });
> hbds.initialize();
>
> sessionController = new SessionController();
> sessionController.setHbDataStore(hbds);
> SessionController.registerSessionController("ShopDB",
> sessionController);
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds