KickJava   Java API By Example, From Geeks To Geeks.

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


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="menu")
9 public class Menu {
10   /**
11    * CREATE TABLE `menu` (
12    * `mid` int(10) unsigned NOT NULL default '0',
13    * `pid` int(10) unsigned NOT NULL default '0',
14    * `path` varchar(255) NOT NULL default '',
15    * `title` varchar(255) NOT NULL default '',
16    * `description` varchar(255) NOT NULL default '',
17    * `weight` tinyint(4) NOT NULL default '0',
18    * `type` int(2) unsigned NOT NULL default '0',
19    * PRIMARY KEY (`mid`)
20    * );
21    */

22
23   @Id
24   private int mid;
25   private int pid;
26   private String JavaDoc path;
27   private String JavaDoc title;
28   private String JavaDoc description;
29   private int weight;
30   private int type;
31 }
32
Popular Tags