KickJava   Java API By Example, From Geeks To Geeks.

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


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="role")
9 public class Role {
10   /**
11    * CREATE TABLE `role` (
12    * `rid` int(10) unsigned NOT NULL auto_increment,
13    * `name` varchar(32) NOT NULL default '',
14    * PRIMARY KEY (`rid`),
15    * UNIQUE KEY `name` (`name`)
16    * );
17    */

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