KickJava   Java API By Example, From Geeks To Geeks.

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


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="filter_formats")
9 public class FilterFormat {
10   /**
11    * CREATE TABLE `filter_formats` (
12    * `format` int(4) NOT NULL auto_increment,
13    * `name` varchar(255) NOT NULL default '',
14    * `roles` varchar(255) NOT NULL default '',
15    * `cache` tinyint(2) NOT NULL default '0',
16    * PRIMARY KEY (`format`)
17    * );
18    */

19
20   @Id
21   private int format;
22   private String JavaDoc name;
23   private String JavaDoc roles;
24   private int cache;
25 }
26
Popular Tags