KickJava   Java API By Example, From Geeks To Geeks.

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


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="access")
9 public class Access {
10   /**
11    * CREATE TABLE `access` (
12    * `aid` tinyint(10) NOT NULL auto_increment,
13    * `mask` varchar(255) NOT NULL default '',
14    * `type` varchar(255) NOT NULL default '',
15    * `status` tinyint(2) NOT NULL default '0',
16    * PRIMARY KEY (`aid`)
17    * );
18    */

19
20   @Id
21   private int aid;
22   private String JavaDoc mask;
23   private String JavaDoc type;
24   private int status;
25 }
26
Popular Tags