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 10:22 Go to next message
Andre Ribeiro is currently offline Andre Ribeiro
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 11:21 Go to previous message
James is currently offline James
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: Sat Jul 26 11:23:56 EDT 2014

Powered by FUDForum. Page generated in 0.10737 seconds