Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CDO/Hibernate Store/Download and Install"

(Required plugins/versions)
(Update site locations)
 
(63 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
__TOC__
 +
 +
 +
This page describes the required software components, their versions and download locations. Also the location of the example Eclipse projects is listed on this page.
 +
 
== Required plugins/versions ==
 
== Required plugins/versions ==
  
The CDO Hibernate data store for CDO 3.0 requires the following software:
+
The [[CDO_Hibernate_Store|CDO Hibernate Store]] is available in the following versions:
* Eclipse 3.6 (Helios)
+
* CDO 4.2: Eclipse 4.3, EMF 2.9, Hibernate 4.1, Teneo 2.0.1
* EMF 2.6
+
* CDO 4.1: Eclipse 3.7-3.8, EMF 2.7-2.8, Hibernate 4.1, Teneo 2.0.0
* CDO 3.0
+
* CDO 4.0: Eclipse 3.7, EMF 2.7, Hibernate 3.6, Teneo 1.2.0
* Hibernate 3.3.2 or later (not earlier)
+
 
* Teneo 1.2.0
+
All the software should be installed/installed as plugins. The download locations of all the required plugins are listed in the next sections.
* JDBC drivers for relevant databases
+
 
 +
== Update site locations ==
 +
 
 +
All the Hibernate store dependencies are downloaded and installed through update sites.
 +
 
 +
To download Eclipse. To download it go to this page:
 +
[http://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/], for the development builds go to the development builds tab. For the tutorials, the Eclipse IDE for Java EE Developers or Eclipse IDE for Java Developers can be used (no need to pick the full modeling tools).
 +
 
 +
EMF is probably included in the Eclipse IDE. It can be installed from the Helios update site directly.
 +
 
 +
First install the dependencies of the '''CDO Hibernate Store 4.2 and 4.3''' using these sites:
 +
* Teneo: http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/
 +
* Hibernate and other 3rd party libs: http://www.elver.org/eclipse/2.0.0/update
 +
 
 +
Then install the '''CDO plugins''' (choose the hibernate group/plugins) using one of the update sites listed here:
 +
* http://www.eclipse.org/cdo/downloads/
 +
 
 +
== Installing the plugins ==
 +
 
 +
The CDO plugins are installed using p2 directly.
 +
 
 +
[[Image:org.eclipse.emf.cdo.p2.site.png | center | 650px]]
 +
 
 +
 
 +
For the zipped files the following approach can be used:
 +
* all the zip files were unzipped and then merged together in one directory 'eclipse' (with subdirectories features and plugins)
 +
* this eclipse directory was placed in the dropins directory of the eclipse installation
 +
 
 +
After installing restart eclipse.
 +
 
 +
For more information see the [[Equinox_p2_Getting_Started#Supported_dropins_formats|p2 getting started]] page.
 +
 
 +
After restarting Eclipse you can visit the Help > About Eclipse > Installation Details (a button). It should show the installed plugins as shown below.
  
All the software should be installed as plugins.
+
[[Image:org.eclipse.emf.cdo.hibernate.plugins.png | center | 650px]]
  
== Download locations ==
+
== Example Projects ==
  
To download Eclipse 3.6 (Helios). At this time (January 2010) Eclipse 3.6 is still under development so to download it go to this page and then the Development Builds tab:
+
The CDO Hibernate store tutorials make use of 3 Eclipse projects:
[http://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/]
+
* '''org.eclipse.emf.cdo.examples.company''': contains the example model which has already been prepared for CDO (see [http://wiki.eclipse.org/Preparing_EMF_Models_for_CDO here] how this is done)
 +
* '''org.eclipse.emf.cdo.examples.hibernate.server''': contains the server configuration and server side part of the tutorial
 +
* '''org.eclipse.emf.cdo.examples.hibernate.client''': shows client connection code and contains junit tests creating and querying for data
  
To follow the tutorials the Eclipse IDE for Java EE Developers or Eclipse IDE for Java Developers can be used (no need to pick the full modeling tools).
+
These projects can be found in git at this location:
 +
http://git.eclipse.org/c/cdo/cdo.git/tree/plugins
  
EMF is probably included in the Eclipse IDE. But if it isn't then it can be downloaded here:
+
To clone/get the dev projects execute this command (in linux):
[http://www.eclipse.org/modeling/emf/downloads/?project=emf http://www.eclipse.org/modeling/emf/downloads/?project=emf]
+
git clone http://git.eclipse.org/gitroot/cdo/cdo.git/
(see the maintenance builds a bit lower on the page):
+
  
To download the CDO plugins visit this page:
+
This will give you the master/4.1 clone. If you want the 4.0 version then inside the cdo directory (created by the clone action):
[https://build.eclipse.org/hudson/job/cbi-emf-net4j-cdo-3.0/lastSuccessfulBuild/artifact/build https://build.eclipse.org/hudson/job/cbi-emf-net4j-cdo-3.0/lastSuccessfulBuild/artifact/build]
+
git checkout streams/4.0-maintenance
and then click on Nxyz (where xyz is a date) to open the nightly build location. The easiest is to download the all features and plugins zip:
+
emf-cdo-AllFeaturesAndPlugins-N201001181004.zip
+
(with a different date in your case ofcourse)
+
  
Then download Teneo Hibernate 1.2.0:
+
(note: the org.eclipse.emf.cdo.examples.hibernate.client contains dependencies on the hibernate cdo store server side. This is just to support the generation of the hbm file (see [[CDO_Hibernate_Store_Model_Relational_Mapping#Generating_the_mapping.2C_manually_changing_it_and_then_use_the_manual_mapping|here]]). Normally a client side plugin would not have these dependencies.)
[http://www.eclipse.org/modeling/emf/downloads/?project=teneo http://www.eclipse.org/modeling/emf/downloads/?project=teneo]
+
  
Then download hibernate and database drivers from here:
+
----
http://net4j.sourceforge.net/update/downloads/
+
Wikis: [[CDO]] | [[Net4j]] | [[EMF]] | [[Eclipse]]
then select a recent ThirdPartyyDrivers zip file (I used ThirdPartyDrivers_v6.zip).
+
NOTE: you need to use the Hibernate 3.3.1 version *not* the Hibernate 3.3.2 version!
+
This is an update site and I noticed that in Chrome this link does not open, in Firefox it does. Anyway you can always download and install these plugins through an update manager also. For the tutorials below I downloaded:
+
org.hsqldb - 1.8.0.200912171633
+
org.hibernate - 3.3.2.200912171633
+
com.mysql.jdbc - 5.1.7.200912171633
+

Latest revision as of 07:47, 4 September 2013


This page describes the required software components, their versions and download locations. Also the location of the example Eclipse projects is listed on this page.

Required plugins/versions

The CDO Hibernate Store is available in the following versions:

  • CDO 4.2: Eclipse 4.3, EMF 2.9, Hibernate 4.1, Teneo 2.0.1
  • CDO 4.1: Eclipse 3.7-3.8, EMF 2.7-2.8, Hibernate 4.1, Teneo 2.0.0
  • CDO 4.0: Eclipse 3.7, EMF 2.7, Hibernate 3.6, Teneo 1.2.0

All the software should be installed/installed as plugins. The download locations of all the required plugins are listed in the next sections.

Update site locations

All the Hibernate store dependencies are downloaded and installed through update sites.

To download Eclipse. To download it go to this page: http://www.eclipse.org/downloads/, for the development builds go to the development builds tab. For the tutorials, the Eclipse IDE for Java EE Developers or Eclipse IDE for Java Developers can be used (no need to pick the full modeling tools).

EMF is probably included in the Eclipse IDE. It can be installed from the Helios update site directly.

First install the dependencies of the CDO Hibernate Store 4.2 and 4.3 using these sites:

Then install the CDO plugins (choose the hibernate group/plugins) using one of the update sites listed here:

Installing the plugins

The CDO plugins are installed using p2 directly.

Org.eclipse.emf.cdo.p2.site.png


For the zipped files the following approach can be used:

  • all the zip files were unzipped and then merged together in one directory 'eclipse' (with subdirectories features and plugins)
  • this eclipse directory was placed in the dropins directory of the eclipse installation

After installing restart eclipse.

For more information see the p2 getting started page.

After restarting Eclipse you can visit the Help > About Eclipse > Installation Details (a button). It should show the installed plugins as shown below.

Org.eclipse.emf.cdo.hibernate.plugins.png

Example Projects

The CDO Hibernate store tutorials make use of 3 Eclipse projects:

  • org.eclipse.emf.cdo.examples.company: contains the example model which has already been prepared for CDO (see here how this is done)
  • org.eclipse.emf.cdo.examples.hibernate.server: contains the server configuration and server side part of the tutorial
  • org.eclipse.emf.cdo.examples.hibernate.client: shows client connection code and contains junit tests creating and querying for data

These projects can be found in git at this location: http://git.eclipse.org/c/cdo/cdo.git/tree/plugins

To clone/get the dev projects execute this command (in linux): git clone http://git.eclipse.org/gitroot/cdo/cdo.git/

This will give you the master/4.1 clone. If you want the 4.0 version then inside the cdo directory (created by the clone action): git checkout streams/4.0-maintenance

(note: the org.eclipse.emf.cdo.examples.hibernate.client contains dependencies on the hibernate cdo store server side. This is just to support the generation of the hbm file (see here). Normally a client side plugin would not have these dependencies.)


Wikis: CDO | Net4j | EMF | Eclipse

Back to the top