Martin Taal's Blog

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

Archive for the ‘CDO’ Category

EMF CDO HibernateStore: Upgraded to Teneo 2.0, JPA 2.0 and Hibernate 4.1

leave a comment »

In a previous post I talked about Teneo 2.0 and its JPA 2.0 and Hibernate 4.1 support. With these new developments it was time to upgrade the CDO Hibernate store also. So here it is: the CDO Hibernate Store in the CDO 4.1 release/build now also supports JPA 2.0 and Hibernate 4.1. This new functionality is available from CDO 4.1 RC1 or any nightly build from the 21th of May 2012.

Hibernate 4.1 is a major release and it is not binary compatible with 3.6.0. This means that when getting the latest CDO Hibernate store 4.1 version you also need to upgrade Hibernate to 4.1, and if you are testing using hsqldb then make sure to also upgrade that one.

To help you out, the newer hibernate and hsqldb versions are available through this update site:

http://www.elver.org/eclipse/2.0.0/update

The CDO Hibernate Store 4.1 depends on Teneo 2.0 which you can find on this update site:

http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/

I hope this post is useful for you, thanks for reading and if you are interested feel free to give feedback or ask questions on the EMF newsgroup or forum.

gr. Martin

Written by martintaal

May 23, 2012 at 4:54 am

Posted in CDO

EMF Teneo 2.0: JPA 2.0 and Hibernate 4.*!

with 3 comments

The time has come to up the version number of Teneo from 1.2.0 to 2.0.0. The ‘technical’ reason is support for Hibernate 4.* which has a different internal api than previous versions. At the same time it is nice to announce another new feature: JPA 2.0 annotation support (see the JPA 2.0 spec). Teneo already supported the JPA 1.0 specification and the JPA EntityManager api.

The JPA 2.0 annotation development has been made possible by the sponsorship of an active Teneo user-company. It is great to see that there are companies out there who appreciate what we do at the Eclipse Modeling group and specifically ofcourse Teneo!

JPA 2.0 annotations can be defined in-the-model as well as in a separate xml file.

To summarize Teneo is now available in 2 actively maintained versions:

1.2.0:

  • JPA 2.0
  • Hibernate 3.6/EclipseLink 2
  • EMF 2.6 and 2.7
  • Eclipse Helios

2.0.0:

  • JPA 2.0
  • Hibernate 4.1
  • EMF 2.7 – 2.8
  • Eclipse 3.7 and further

Note the JPA 2.0 support is available in the latest build of both versions of Teneo, the main difference between the 2 versions is the supported Hibernate version.

Active development of new features is done in the 2.0.0 version, but bugs/issues will be actively fixed in 1.2.0 for the foreseeable future.

I am currently upgrading CDO Hibernate Store to Teneo 2.0.0, that should be finished soon to!

For more information on dependencies and how to get these new versions, visit the Teneo wiki download & install page. This page also lists the update site with the latest Hibernate and hsqldb plugins.

I hope this post is useful for you, thanks for reading and if you are interested feel free to give feedback or ask questions on the EMF newsgroup or forum.

gr. Martin

Written by martintaal

May 21, 2012 at 3:54 am

Posted in CDO, Teneo

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 eclipse.org 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 eclipse.org. 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