Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink 2.5 schema generation
EclipseLink 2.5 schema generation [message #1061571] Mon, 03 June 2013 03:39 Go to next message
Oliver Zhou is currently offline Oliver ZhouFriend
Messages: 41
Registered: February 2012
Member
Hi,

I saw EclipseLink 2.5 support schema generation feature of JPA 2.1. But I cannot find something that equivalent to "<property name="eclipselink.ddl-generation" value="create-or-extend-tables" />" in 2.4.
"create-or-extend-tables" will create tables if not existing, and extend table if I add new column.

If I would like to update to 2.5, how can I do that as 2.4?

Re: EclipseLink 2.5 schema generation [message #1061882 is a reply to message #1061571] Tue, 04 June 2013 13:51 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

JPA 2.1 does not provide an "extend" option. In EclipseLink you can use the "create-or-extend-tables" option with the new JPA 2.1 schema generation properties, or you can continue to use the EclipseLink "eclipselink.ddl-generation" property.


James : Wiki : Book : Blog : Twitter
Re: EclipseLink 2.5 schema generation [message #1061940 is a reply to message #1061882] Wed, 05 June 2013 02:57 Go to previous message
Oliver Zhou is currently offline Oliver ZhouFriend
Messages: 41
Registered: February 2012
Member
Thanks.
Previous Topic:3 table cascade reference @JoinFetch
Next Topic:Eclipse Data Partition Question
Goto Forum:
  


Current Time: Wed Apr 24 19:19:59 GMT 2024

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

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

Back to the top