KickJava   Java API By Example, From Geeks To Geeks.

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


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="moderation_filters")
9 public class ModerationFilter {
10   /**
11    * CREATE TABLE `moderation_filters` (
12    * `fid` int(10) unsigned NOT NULL auto_increment,
13    * `filter` varchar(255) NOT NULL default '',
14    * `minimum` smallint(6) NOT NULL default '0',
15    * PRIMARY KEY (`fid`)
16    * );
17    */

18
19   @Id
20   private int fid;
21   private String JavaDoc filter;
22   private int minimum;
23 }
24
Popular Tags