|[CDO] maybe some mistakes about CDO and Teneo [message #423502]
||Wed, 01 October 2008 14:39
| Tristan Faure
Registered: July 2009
I already have experienced CDO using my meta model and sharing them with
CDO using the default CDO tutorial and ui.
I configure my server to work with a db store and MySQL database. But
when i launch my prototype I'm surprised that it's not only references
to my models that are stored in my database but all my model
I thought that was the teneo job to do a mapping between attributes
models and tables
So am I using Teneo implicitly ? or it's not the good way to use CDO and
i have to configure Teneo and adapt my code to store models in base ?
|Re: [CDO] maybe some mistakes about CDO and Teneo [message #423507 is a reply to message #423505]
||Wed, 01 October 2008 15:17
| Martin Taal
Registered: July 2009
The benefit of Teneo over the standard CDO DBStore is that you have much more control on how your |
model is mapped to the database, for example on topics such as naming of tables and columns, where
the foreign keys are placed, join tables (or not), handling of different inheritance mapping
strategies (incl. mappedsuperclass), etc. Teneo does a good job by generating a default mapping and
you can control many things by options or in even more detail by adding JPA annotations to your model.
Maybe Eike can add/complement my remarks (I don't know DBStore that well).
Tristan FAURE wrote:
> Sory my not very fluent english
> In my mind :
> - to store models in database (OR mapping) we need teneo.
> - to have a server managing model sharing we need CDO
> but it seems i think wrong because my database (with dbstore) contains
> my model entities and it seems there is a OR mapping (i've a table for
> each EClass).
> So I don't see Teneo and HibernateStore configuration benefits.
> I hope it's more clear :/
> Eike Stepper a écrit :
>> Tristan FAURE schrieb:
>>> I already have experienced CDO using my meta model and sharing them
>>> with CDO using the default CDO tutorial and ui.
>> Well done! ;-)
>>> I configure my server to work with a db store and MySQL database. But
>>> when i launch my prototype I'm surprised that it's not only
>>> references to my models that are stored in my database but all my model
>> Could you please rephrase this sentence. I don't understand what you
>> want to point out...
>>> I thought that was the teneo job to do a mapping between attributes
>>> models and tables
>>> So am I using Teneo implicitly ?
>> If it's true that you properly configured a DBStore (and not the
>> HibernateStore) for your repository, then no ;-)
>>> or it's not the good way to use CDO and i have to configure Teneo and
>>> adapt my code to store models in base ?
>> What do you mean by "store models in base"?
>> Maybe your problem becomes clearer for me if you try to explain it in
>> other words.
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: firstname.lastname@example.org - email@example.com
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.02338 seconds