Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Does CDO support multiple packages having classes of same name.
[CDO] Does CDO support multiple packages having classes of same name. [message #1702162] Mon, 20 July 2015 12:21 Go to next message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
Hi,

Is it possible to have in a single CDO repository, different packages,
having different nsURIs, but classes
with identical names? Looks like CDO only creates one table per class.

Thanks.
Re: [CDO] Does CDO support multiple packages having classes of same name. [message #1702164 is a reply to message #1702162] Mon, 20 July 2015 12:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 20.07.2015 um 14:21 schrieb Guillaume Hillairet:
> Hi,
>
> Is it possible to have in a single CDO repository, different packages, having different nsURIs, but classes
> with identical names?
Yes. If the packages have different names you can just set
https://wiki.eclipse.org/CDO/Server_Configuration_Reference#Property_qualifiedNames to true. Otherwise you can annotate
your model classes as described in
https://www.eclipse.org/cdo/documentation/relnotes_30/relnotes-3.0.html#New_model_annotations_are_available_to_override_mapping_defaults

> Looks like CDO only creates one table per class.
What do you mean? The DBStore maps one *attribute* table per *concrete* class. It may create additional tables for
multi-valued features.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Does CDO support multiple packages having classes of same name. [message #1702167 is a reply to message #1702164] Mon, 20 July 2015 12:53 Go to previous message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
On 2015-07-20 12:42:12 +0000, Eike Stepper said:

> Am 20.07.2015 um 14:21 schrieb Guillaume Hillairet:
>> Hi,
>>
>> Is it possible to have in a single CDO repository, different packages,
>> having different nsURIs, but classes
>> with identical names?
> Yes. If the packages have different names you can just set
> https://wiki.eclipse.org/CDO/Server_Configuration_Reference#Property_qualifiedNames
> to true. Otherwise you can annotate your model classes as described in
> https://www.eclipse.org/cdo/documentation/relnotes_30/relnotes-3.0.html#New_model_annotations_are_available_to_override_mapping_defaults
>

Thanks will try that.

>
>> Looks like CDO only creates one table per class.
> What do you mean? The DBStore maps one *attribute* table per *concrete*
> class. It may create additional tables for multi-valued features.

I was not talking about tables for multi-valued features, just the one
that correspond to the class. In that case if I have 2 classes named A
in 2 different models, then there is one table A.

>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
Previous Topic:[CDO] Logging Commits with a Repository handler
Next Topic:Help with installing EMF Feature Model Diagram Editor
Goto Forum:
  


Current Time: Thu Mar 28 15:48:40 GMT 2024

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

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

Back to the top