I'm trying to add JDO to an existing project. I've read the lesson "Start with an existing JAVA project" but I can't go through the "Database connection" chapter.
Here are the steps :
1. Right click, on CreateCompany.java(I've change this by my main class) in order to display the context menu
2. Select EclipseJDO > MainCreation
The problem is here, at step 2 : no "MainCreation" menu appears :( there's only the "newMetadata" menu.
What's wrong ? I'm using Eclipse 3.0, EMF 2.0, latest eclipseJDO, all of this on a GNU/Linux OS.
I didn't change the default driver (reference(SUN)).
Anybody could help ? Thanks !
Tristan RENAUD.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm trying to add JDO to an existing project. I've read the lesson "Start with an existing JAVA project" but I can't go through the "Database connection" chapter.
Here are the steps :
1. Right click, on CreateCompany.java(I've change this by my main class) in order to display the context menu
2. Select EclipseJDO > MainCreation
The problem is here, at step 2 : no "MainCreation" menu appears :( there's only the "newMetadata" menu.
What's wrong ? I'm using Eclipse 3.0, EMF 2.0, latest eclipseJDO, all of this on a GNU/Linux OS.
I didn't change the default driver (reference(SUN)).
Anybody could help ? Thanks !
Tristan RENAUD.
This feature is dropped due to somes APIs change in Eclipse 3. The doc is out of date.
In fact, it'd better read the properties from a file as following:
Properties properties = new Properties();
try
{
InputStream input =
CreateCompany.class.getResourceAsStream("jdo.properties");
properties.load(input);
}
catch (IOException e)
{
e.printStackTrace();
}
PersistenceManagerFactory pmfactory =
JDOHelper.getPersistenceManagerFactory(properties);
yves yang