KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Entity;
4 import javax.persistence.Id;
5 import javax.persistence.Table;
6
7 @Entity
8 @Table(name="system")
9 public class System {
10   /**
11    * CREATE TABLE `system` (
12    * `filename` varchar(255) NOT NULL default '',
13    * `name` varchar(255) NOT NULL default '',
14    * `type` varchar(255) NOT NULL default '',
15    * `description` varchar(255) NOT NULL default '',
16    * `status` int(2) NOT NULL default '0',
17    * `throttle` tinyint(1) NOT NULL default '0',
18    * `bootstrap` int(2) NOT NULL default '0',
19    * `schema_version` smallint(2) unsigned NOT NULL default '0',
20    * PRIMARY KEY (`filename`)
21    * );
22    */

23
24   @Id
25   private String JavaDoc filename;
26   private String JavaDoc name;
27   private String JavaDoc type;
28   private String JavaDoc description;
29   private int status;
30   private int throttle;
31   private int bootstrap;
32   private int schema_version;
33 }
34
Popular Tags