Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » ddl generation without jpa
ddl generation without jpa [message #385264] Fri, 16 January 2009 09:10 Go to next message
Eclipse UserFriend
hello,

im trying to generate DDL automatically within an old, pre-JPA-project,
but i cant get it work.

naivly i tried to set the jpa-properties from [1] at the login-objekt,
but it doesnt work. is there any chance to get it work without jpa and
where can i read how to do that?


<snip>
public class Project extends org.eclipse.persistence.sessions.Project {

//[...]

public void applyLogin() {
DatabaseLogin login = new DatabaseLogin();
//[...]
// Configuration Properties.
login.setProperty(PersistenceUnitProperties.DDL_GENERATION,
PersistenceUnitProperties.CREATE_ONLY);
login.setProperty(PersistenceUnitProperties.DDL_GENERATION_M ODE,
PersistenceUnitProperties.DDL_DATABASE_GENERATION);
//[...]
}
</snip>

[1]http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_ (ELUG)#Using_EclipseLink_JPA_Extensions_for_Schema_Generatio n
Re: ddl generation without jpa [message #385287 is a reply to message #385264] Sat, 17 January 2009 20:35 Go to previous messageGo to next message
Eclipse UserFriend
If you are using a native ORM project you can use the SchemaManager to
create the schema.

http://www.eclipse.org/eclipselink/api/latest/org/eclipse/pe rsistence/tools/schemaframework/SchemaManager.html

Doug
Re: ddl generation without jpa [message #385290 is a reply to message #385287] Mon, 19 January 2009 08:37 Go to previous message
Eclipse UserFriend
Also see DefaultTableGenerator in the same package.

----
James
Previous Topic:ReadAllQuery in 2-tier Swing App
Next Topic:Tree structure - avoid select on parent_id
Goto Forum:
  


Current Time: Mon Jul 14 20:41:41 EDT 2025

Powered by FUDForum. Page generated in 0.04594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top