Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » AUTO INC MySQL schema generation
AUTO INC MySQL schema generation [message #381665] Mon, 29 September 2008 14:22 Go to next message
Andre Ribeiro is currently offline Andre RibeiroFriend
Messages: 58
Registered: July 2009

is it possible to do a schema generation for a mysql database with AUTO
INC activated for some fields?

Re: AUTO INC MySQL schema generation [message #381670 is a reply to message #381665] Tue, 30 September 2008 15:21 Go to previous message
James is currently offline JamesFriend
Messages: 272
Registered: July 2009
Senior Member
I believe if you configure your entity that maps to the table to use a
@Generated on your @Id using IDENTITY, the auto increment will be
generated in the table creation.

You can also use the columnDefinition of the @Column.

-- James
Previous Topic:Oracle Releases Oracle® TopLink® 11g Based on EclipseLink
Next Topic:EclipseLink with JBoss and MySQL
Goto Forum:

Current Time: Fri Jun 22 19:18:19 GMT 2018

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

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

Back to the top