KickJava   Java API By Example, From Geeks To Geeks.

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


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="directory")
9 public class Directory {
10   /**
11    * CREATE TABLE `directory` (
12    * `link` varchar(255) NOT NULL default '',
13    * `name` varchar(128) NOT NULL default '',
14    * `mail` varchar(128) NOT NULL default '',
15    * `slogan` longtext NOT NULL,
16    * `mission` longtext NOT NULL,
17    * `timestamp` int(11) NOT NULL default '0',
18    * PRIMARY KEY (`link`)
19    * );
20    */

21
22   @Id
23   private String JavaDoc link;
24   private String JavaDoc name;
25   private String JavaDoc mail;
26   private String JavaDoc slogan;
27   private String JavaDoc mission;
28   private int timestamp;
29 }
30
Popular Tags