Martin Taal's Blog

About EMF, Teneo, CDO, Texo, Hibernate, Open-Source ERP and other topics

Introducing the CDO Hibernate Store

with 8 comments

The past few months I have been spending some time on putting the finishing touch on the CDO Hibernate store. CDO is a distributed shared model framework for EMF models providing distributed transactionality, persistence, queries etc.
The CDO Hibernate store combines the automatic object-relational mapping of Teneo with the runtime object-relational mapping logic provided by Hibernate.
The combination of Teneo and Hibernate gives the CDO user/developer the following advantages:
  • Automatic Model-Relational Mapping (with manual overrides): Teneo takes care of automatic mapping of your model to a relation database schema. The relational database schema explicitly implements the domain model. The automatic mapping can be manually overridden using JPA annotations in the model or in a separate XML file. All JPA annotations (and several Hibernate extensions) are supported.
  • Support for many databases: Hibernate provides superior runtime Object Relational Mapping to many different relational databases. We test with mysql and hsqldb but there are no known obstacles for using CDO on other databases supported by Hibernate.
  • HQL: the CDO Hibernate store makes it possible to execute HQL queries on the client. The complete HQL syntax is supported (incl. joins, aggregations, functions, etc.).
The current status of the CDO Hibernate store:
  • The store now passes all relevant testcases (more than 580 of them).
  • The documentation has been completed and is available on the wiki..
  • Example projects have been created to facilitate a quick-startup when using the store.
For more information on the CDO Hibernate store visit the wiki page hosted at The wiki contains lots of information for a CDO Hibernate user: Quick Start, Download & Install, Configuration, Tutorials, etc.
The tutorials are all supported by a set of example projects which can be downloaded from cvs.
Feel free to provide feedback on the EMF newsgroup.

Written by martintaal

February 23, 2010 at 11:50 am

Posted in CDO

8 Responses

Subscribe to comments with RSS.

  1. Any idea when eclipse 3.6 will be released publicly?


    February 25, 2010 at 8:40 pm

  2. Thanks. This looks like a really awesome project, I can’t wait to try it out. We have been using an RDF store for this but it doesn’t automatically create the model schema. So there is no way to get this to work with eclipse 3.5?


    February 25, 2010 at 9:00 pm

  3. Martin– I will give it a try.

    BTW, what is your opinion of this topic: ?

    How does EMFStore compare to CDO?


    February 26, 2010 at 8:39 pm

    • Hi Adam,
      I don’t know EMFStore that well (not more than I can read in their submission). Recently CDO has been extended with branching and offline support, but this is quite recent functionality. But you can ask on the EMF newsgroup maybe others have more experience.

      Btw, for the CDO Hibernate store the target is not so much svn-type-of-situations (with branching) but more traditional administrative ERP-like applications.

      gr. Martin


      February 26, 2010 at 8:47 pm

  4. hello

      I have been several examples and have already taken a cdo served with “CDO / Hibernate Store” I think it’s better than a DB / Store. whether I understand some differences between the 2 stores.

    Now I’m riding an example RCP and exported as an application in that case the first thing to do is run the server. how can I run automatic way the cdo server and then run the application rcp.

    It must first run the server
    then I run the RCP application.

    appreciate any input.

    jhon oscar salazar orozco

    January 7, 2014 at 11:52 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: