KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Entity;
4 import javax.persistence.Table;
5
6 @Entity
7 @Table(name="blocks")
8 public class Block {
9   /**
10    * CREATE TABLE `blocks` (
11    * `module` varchar(64) NOT NULL default '',
12    * `delta` varchar(32) NOT NULL default '0',
13    * `theme` varchar(255) NOT NULL default '',
14    * `status` tinyint(2) NOT NULL default '0',
15    * `weight` tinyint(1) NOT NULL default '0',
16    * `region` varchar(64) NOT NULL default 'left',
17    * `custom` tinyint(2) NOT NULL default '0',
18    * `throttle` tinyint(1) NOT NULL default '0',
19    * `visibility` tinyint(1) NOT NULL default '0',
20    * `pages` text NOT NULL
21    * );
22    */

23
24   private String JavaDoc module;
25   private String JavaDoc delta;
26   private String JavaDoc theme;
27   private int status;
28   private int weight;
29   private String JavaDoc region;
30   private int custom;
31   private int throttle;
32   private int visibility;
33   private String JavaDoc pages;
34 }
35
Popular Tags