Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Modify database schema for class based entities
Modify database schema for class based entities [message #1059838] Tue, 21 May 2013 20:17 Go to next message
Florian Pirchner is currently offline Florian PirchnerFriend
Messages: 94
Registered: July 2009
Member

Hi,

i was reading http://wiki.eclipse.org/EclipseLink/Development/JPA/Dynamic with big interest since it allows me to change the database schema based on Eclipse-Link-API.

Is there also a way to change the schema for class based entities (Entities that become defined by JPA annotated classes)?

My intention is to remove FKConstraints from a table at runtime and add it after data migration again.
And to add new columns to the table schema or to remove them?

Best, Florian
Re: Modify database schema for class based entities [message #1060034 is a reply to message #1059838] Wed, 22 May 2013 15:10 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink supports a DDL option of "create-or-extend-tables"

See,
http://www.eclipse.org/eclipselink/documentation/2.4/jpa/extensions/p_ddl_generation.htm#BABHEJJI


James : Wiki : Book : Blog : Twitter
Previous Topic:TabelDefinition for JPAEntity.class
Next Topic:Problems with Eclipselink batching statements
Goto Forum:
  


Current Time: Tue Apr 23 13:28:50 GMT 2024

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

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

Back to the top