KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > drupal > persistence > Sequence


1 package demo.drupal.persistence;
2
3 import javax.persistence.Id;
4 import javax.persistence.Entity;
5 import javax.persistence.Table;
6
7 @Entity
8 @Table(name="sequences")
9 public class Sequence {
10   /**
11    * CREATE TABLE `sequences` (
12    * `name` varchar(255) NOT NULL default '',
13    * `id` int(10) unsigned NOT NULL default '0',
14    * PRIMARY KEY (`name`)
15    * );
16    */

17
18   @Id
19   private String JavaDoc name;
20   private int id;
21 }
22
Popular Tags