KickJava   Java API By Example, From Geeks To Geeks.

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


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="accesslog")
9 public class Accesslog {
10   /**
11    * CREATE TABLE `accesslog` (
12    * `aid` int(10) NOT NULL auto_increment,
13    * `sid` varchar(32) NOT NULL default '',
14    * `title` varchar(255) default NULL,
15    * `path` varchar(255) default NULL,
16    * `url` varchar(255) default NULL,
17    * `hostname` varchar(128) default NULL,
18    * `uid` int(10) unsigned default '0',
19    * `timer` int(10) unsigned NOT NULL default '0',
20    * `timestamp` int(11) unsigned NOT NULL default '0',
21    * PRIMARY KEY (`aid`),
22    * KEY `accesslog_timestamp` (`timestamp`)
23    * );
24    */

25
26   @Id
27   private int aid;
28   private String JavaDoc sid;
29   private String JavaDoc title;
30   private String JavaDoc path;
31   private String JavaDoc url;
32   private String JavaDoc hostname;
33   private int uid;
34   private int timer;
35   private int timestamp;
36 }
37
38
Popular Tags