Skip to main content



      Home
Home » Modeling » EMF » [CDO] DBTable exists when committing
[CDO] DBTable exists when committing [message #511384] Mon, 01 February 2010 08:38 Go to next message
Eclipse UserFriend
Hi,

I encounter problems when migrating existing EMF model for CDO.

Model "A" contains an object with type "DispatcherSystem".
Model "A" also has dependency to model "B", which also (unfortunately) contains an object with type "DispatcherSystem".
However, since they are contained in different ecore models they have different namespaceURIs. Hence, it should work also with CDO I assumed...
But it doesn't.

I'm not sure if it the issue with having "same" type declared in multiple models causing the problem, or it is something else.
When trying to commit (in CDO editor) an object from model "A" an error occurs telling that " org.eclipse.net4j.db.DBException: DBTable exists: DispatcherSystem".

I'm running CDO 2.0.0 at the moment. Is there some correction/updates concerning this issue in later versions? 2.0 maintenance? 3.0?


Regards,
Joachim
Re: [CDO] DBTable exists when committing [message #511398 is a reply to message #511384] Mon, 01 February 2010 08:53 Go to previous messageGo to next message
Eclipse UserFriend
Hej Joachim ,

When you encounter problems please show us a stack trace ;-)

Without that I can only assume that your DB schema can not be generated
due to table name collisions. You may want to play with the config
properties mentiend here:
http://wiki.eclipse.org/CDO_Server_Configuration_Reference#P roperty_qualifiedNames

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



J. Rietz schrieb:
> Hi,
>
> I encounter problems when migrating existing EMF model for CDO.
>
> Model "A" contains an object with type "DispatcherSystem".
> Model "A" also has dependency to model "B", which also (unfortunately)
> contains an object with type "DispatcherSystem".
> However, since they are contained in different ecore models they have
> different namespaceURIs. Hence, it should work also with CDO I assumed...
> But it doesn't.
>
> I'm not sure if it the issue with having "same" type declared in
> multiple models causing the problem, or it is something else.
> When trying to commit (in CDO editor) an object from model "A" an
> error occurs telling that " org.eclipse.net4j.db.DBException: DBTable
> exists: DispatcherSystem".
>
> I'm running CDO 2.0.0 at the moment. Is there some correction/updates
> concerning this issue in later versions? 2.0 maintenance? 3.0?
>
>
> Regards,
> Joachim
Re: [CDO] DBTable exists when committing [message #511967 is a reply to message #511398] Wed, 03 February 2010 09:50 Go to previous message
Eclipse UserFriend
Thanks Eike!

Changing the config property http:// wiki.eclipse.org/CDO_Server_Configuration_Reference#Property _qualifiedNames fixed my problems (in combination with using the latest R2_0_maintenance branch, which included a bugfix I also needed) Smile

BTW. Will try to remember the stack trace next time Embarrassed

Cheers

Eike Stepper wrote on Mon, 01 February 2010 08:53
Hej Joachim ,

When you encounter problems please show us a stack trace Wink

Without that I can only assume that your DB schema can not be generated
due to table name collisions. You may want to play with the config
properties mentiend here:
http://wiki.eclipse.org/CDO_Server_Configuration_Reference#P roperty_qualifiedNames

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



J. Rietz schrieb:
> Hi,
>
> I encounter problems when migrating existing EMF model for CDO.
>
> Model "A" contains an object with type "DispatcherSystem".
> Model "A" also has dependency to model "B", which also (unfortunately)
> contains an object with type "DispatcherSystem".
> However, since they are contained in different ecore models they have
> different namespaceURIs. Hence, it should work also with CDO I assumed...
> But it doesn't.
>
> I'm not sure if it the issue with having "same" type declared in
> multiple models causing the problem, or it is something else.
> When trying to commit (in CDO editor) an object from model "A" an
> error occurs telling that " org.eclipse.net4j.db.DBException: DBTable
> exists: DispatcherSystem".
>
> I'm running CDO 2.0.0 at the moment. Is there some correction/updates
> concerning this issue in later versions? 2.0 maintenance? 3.0?
>
>
> Regards,
> Joachim

Previous Topic:customized property sheet & Misc category
Next Topic:With Teneo and EAV schema, what is the best approach to do non-id based query?
Goto Forum:
  


Current Time: Wed Sep 03 09:33:56 EDT 2025

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

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

Back to the top