Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » TabelDefinition for JPAEntity.class
TabelDefinition for JPAEntity.class [message #1059836] Tue, 21 May 2013 20:14 Go to next message
Florian Pirchner is currently offline Florian Pirchner
Messages: 89
Registered: July 2009
Member

Hi,

based on a given XYZEntity.java i would like to create the TableDefinition for it. I could see that TableDefinition gains access to the eclipse link meta model of the java-entity. And i would like to use that data for model evolution.

But i could not find a way to create the table definition for it.
Following site suggest using EntityTypeBuilder.class to create a type. So i tried to figure out more details. But it does not exist.
http://wiki.eclipse.org/EclipseLink/Development/Dynamic/Design_RuntimeDefinition

Has anyone an idea how to do so?

Thanks a lot,
Florian
Re: TabelDefinition for JPAEntity.class [message #1060032 is a reply to message #1059836] Wed, 22 May 2013 15:08 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink supports generating table from JPA Entities using persistence unit properties.

If you are trying to do this yourself, the code for this is in DefaultTableGenerator in the schemaframework package.


James : Wiki : Book : Blog : Twitter
Previous Topic:What is happening here
Next Topic:Modify database schema for class based entities
Goto Forum:
  


Current Time: Fri Oct 31 12:14:04 GMT 2014

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

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