KickJava   Java API By Example, From Geeks To Geeks.

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


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="node_comment_statistics")
9 public class NodeCommentStatistic {
10   /**
11    * CREATE TABLE `node_comment_statistics` (
12    * `nid` int(10) unsigned NOT NULL auto_increment,
13    * `last_comment_timestamp` int(11) NOT NULL default '0',
14    * `last_comment_name` varchar(60) default NULL,
15    * `last_comment_uid` int(10) NOT NULL default '0',
16    * `comment_count` int(10) unsigned NOT NULL default '0',
17    * PRIMARY KEY (`nid`),
18    * KEY `node_comment_timestamp` (`last_comment_timestamp`)
19    * );
20    */

21
22   @Id
23   private int nid;
24   private int last_comment_timestamp;
25   private String JavaDoc last_comment_name;
26   private int last_comment_uid;
27   private int comment_count;
28 }
29
Popular Tags