KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Entity;
4 import javax.persistence.Table;
5
6 @Entity
7 @Table(name="flood")
8 public class Flood {
9   /**
10    * CREATE TABLE `flood` (
11    * `event` varchar(64) NOT NULL default '',
12    * `hostname` varchar(128) NOT NULL default '',
13    * `timestamp` int(11) NOT NULL default '0'
14    * );
15    */

16
17   private String JavaDoc event;
18   private String JavaDoc hostname;
19   private int timestamp;
20 }
21
Popular Tags