KickJava   Java API By Example, From Geeks To Geeks.

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


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="authmap")
9 public class Authmap {
10   /**
11    * CREATE TABLE `authmap` (
12    * `aid` int(10) unsigned NOT NULL auto_increment,
13    * `uid` int(10) NOT NULL default '0',
14    * `authname` varchar(128) NOT NULL default '',
15    * `module` varchar(128) NOT NULL default '',
16    * PRIMARY KEY (`aid`),
17    * UNIQUE KEY `authname` (`authname`)
18    * );
19    */

20
21   @Id
22   private int aid;
23   private int uid;
24   private String JavaDoc authname;
25   private String JavaDoc module;
26 }
27
28
Popular Tags