|
Re: [CDO] Data Mapping/Schema Control [message #990947 is a reply to message #990927] |
Sat, 15 December 2012 09:48 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03166 seconds