KickJava   Java API By Example, From Geeks To Geeks.

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


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="profile_fields")
9 public class ProfileField {
10   /**
11    * CREATE TABLE `profile_fields` (
12    * `fid` int(10) NOT NULL auto_increment,
13    * `title` varchar(255) default NULL,
14    * `name` varchar(128) default NULL,
15    * `explanation` text,
16    * `category` varchar(255) default NULL,
17    * `page` varchar(255) default NULL,
18    * `type` varchar(128) default NULL,
19    * `weight` tinyint(1) NOT NULL default '0',
20    * `required` tinyint(1) NOT NULL default '0',
21    * `register` tinyint(1) NOT NULL default '0',
22    * `visibility` tinyint(1) NOT NULL default '0',
23    * `options` text,
24    * PRIMARY KEY (`fid`),
25    * UNIQUE KEY `name` (`name`),
26    * KEY `category` (`category`)
27    * );
28    */

29
30   @Id
31   private int fid;
32   private String JavaDoc title;
33   private String JavaDoc name;
34   private String JavaDoc explanation;
35   private String JavaDoc category;
36   private String JavaDoc page;
37   private String JavaDoc type;
38   private int weight;
39   private int required;
40   private int register;
41   private int visibility;
42   private String JavaDoc options;
43 }
44
Popular Tags