KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Table;
4
5 // XXX: no primary key @Entity
6
@Table(name="moderation_roles")
7 public class ModerationRole {
8   /**
9    * CREATE TABLE `moderation_roles` (
10    * `rid` int(10) unsigned NOT NULL default '0',
11    * `mid` int(10) unsigned NOT NULL default '0',
12    * `value` tinyint(4) NOT NULL default '0',
13    * KEY `idx_rid` (`rid`),
14    * KEY `idx_mid` (`mid`)
15    * );
16    */

17
18   private int rid;
19   private int mid;
20   private int value;
21 }
22
Popular Tags