KickJava   Java API By Example, From Geeks To Geeks.

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


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="poll")
9 public class Poll {
10   /**
11    * CREATE TABLE `poll` (
12    * `nid` int(10) unsigned NOT NULL default '0',
13    * `runtime` int(10) NOT NULL default '0',
14    * `polled` longtext NOT NULL,
15    * `active` int(2) unsigned NOT NULL default '0',
16    * PRIMARY KEY (`nid`)
17    * );
18    */

19
20   @Id
21   private int nid;
22   private int runtime;
23   private String JavaDoc polled;
24   private int active;
25 }
26
Popular Tags