Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Data Mapping/Schema Control([CDO] Data Mapping/Schema Control)
[CDO] Data Mapping/Schema Control [message #990927] Fri, 14 December 2012 22:51 Go to next message
Andrew Whelan is currently offline Andrew Whelan
Messages: 69
Registered: October 2012
Location: Syracuse NY
Member
Hello,

When I allow CDO to generate my database schema using the default functionality the database schema tables mirror my EMF objects. I was wondering if there was a way to configure CDO to generate a table structure that is different from my EMF model structure? Is there a way to map and control the schema structure?

Thanks
-Andrew
Re: [CDO] Data Mapping/Schema Control [message #990947 is a reply to message #990927] Sat, 15 December 2012 09:48 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Am 14.12.2012 23:51, schrieb Andrew Whelan:
> Hello,
>
> When I allow CDO to generate my database schema using the default functionality the database schema tables mirror my
> EMF objects. I was wondering if there was a way to configure CDO to generate a table structure that is different from
> my EMF model structure? Is there a way to map and control the schema structure?
I guess you're talking about the (default) DBStore. That one is made for an out-of-the-box model experience and with
support for all core and optional CDO functionality. The only mapping strategy supported is a horizontal mapping (one
table per concrete class, no joins). Mapping strategies are pluggable but we only ship the horizontal implementation.
Table and column names, types, etc. are configurable either through the used DBAdapter (override it) or through model
annotations.

If you need more control over the mappings then you may want to try out the HibernateStore, which Martin Taal has
impressively evolved over time. Lately he even added support for auditing.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:Generated switch class and external interfaces
Next Topic:[CDO] OCL Query Syntax, Package reference
Goto Forum:
  


Current Time: Tue Oct 21 18:31:53 GMT 2014

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

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