KickJava   Java API By Example, From Geeks To Geeks.

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


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_feed")
9 public class AggregatorFeed {
10   /**
11    * CREATE TABLE `aggregator_feed` (
12    * `fid` int(10) NOT NULL auto_increment,
13    * `title` varchar(255) NOT NULL default '',
14    * `url` varchar(255) NOT NULL default '',
15    * `refresh` int(10) NOT NULL default '0',
16    * `checked` int(10) NOT NULL default '0',
17    * `link` varchar(255) NOT NULL default '',
18    * `description` longtext NOT NULL,
19    * `image` longtext NOT NULL,
20    * `etag` varchar(255) NOT NULL default '',
21    * `modified` int(10) NOT NULL default '0',
22    * `block` tinyint(2) NOT NULL default '0',
23    * PRIMARY KEY (`fid`),
24    * UNIQUE KEY `link` (`url`),
25    * UNIQUE KEY `title` (`title`)
26    * );
27    */

28
29   @Id
30   private int fid;
31   private String JavaDoc title;
32   private String JavaDoc url;
33   private int refresh;
34   private int checked;
35   private String JavaDoc link;
36   private String JavaDoc description;
37   private byte[] image;
38   private String JavaDoc etag;
39   private int modified;
40   private int block;
41 }
42
Popular Tags