KickJava   Java API By Example, From Geeks To Geeks.

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


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_votes")
9 public class ModerationVote {
10   /**
11    * CREATE TABLE `moderation_votes` (
12    * `mid` int(10) unsigned NOT NULL auto_increment,
13    * `vote` varchar(255) default NULL,
14    * `weight` tinyint(4) NOT NULL default '0',
15    * PRIMARY KEY (`mid`)
16    * );
17    */

18
19   @Id
20   private int mid;
21   private String JavaDoc vote;
22   private int weight;
23 }
24
Popular Tags