Madmike's Blog

September 8, 2009

How to generate Sequences in Mysql 5.1+ part 2

Filed under: Java,Mysql — Florescu Radu @ 19:40
Tags: , , ,

Second option is to use an orm for java :Hibernate with Spring or not .

There are some options you can use:

Use this node in your xml configurations file for your mapped table from database.

<generator class=”name”/>

Where class may be increment with the usual meaning, identity (the identity column of one table), hilo (a generator of random HiLow long with a complicated algorithm).
Soon I will post a working example here.

More informations you could find on RoseIndiaTUTORIALS

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: