KickJava   Java API By Example, From Geeks To Geeks.

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


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="aggregator_item")
9 public class AggregatorItem {
10   /**
11    * CREATE TABLE `aggregator_item` (
12    * `iid` int(10) NOT NULL auto_increment,
13    * `fid` int(10) NOT NULL default '0',
14    * `title` varchar(255) NOT NULL default '',
15    * `link` varchar(255) NOT NULL default '',
16    * `author` varchar(255) NOT NULL default '',
17    * `description` longtext NOT NULL,
18    * `timestamp` int(11) default NULL,
19    * PRIMARY KEY (`iid`)
20    * );
21    */

22
23   @Id
24   private int iid;
25   private int fid;
26   private String JavaDoc title;
27   private String JavaDoc link;
28   private String JavaDoc author;
29   private String JavaDoc description;
30   private int timestamp;
31 }
32
Popular Tags