KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Entity;
4 import javax.persistence.Table;
5
6 @Entity
7 @Table(name="files")
8 public class File {
9   /**
10    * CREATE TABLE `files` (
11    * `fid` int(10) unsigned NOT NULL default '0',
12    * `nid` int(10) unsigned NOT NULL default '0',
13    * `vid` int(10) unsigned NOT NULL default '0',
14    * `filename` varchar(255) NOT NULL default '',
15    * `description` varchar(255) NOT NULL default '',
16    * `filepath` varchar(255) NOT NULL default '',
17    * `filemime` varchar(255) NOT NULL default '',
18    * `filesize` int(10) unsigned NOT NULL default '0',
19    * `list` tinyint(1) unsigned NOT NULL default '0',
20    * KEY `vid` (`vid`),
21    * KEY `fid` (`fid`)
22    * );
23    */

24
25   private int fid;
26   private int nid;
27   private int vid;
28   private String JavaDoc filename;
29   private String JavaDoc description;
30   private String JavaDoc filepath;
31   private String JavaDoc filemime;
32   private int filesize;
33   private int list;
34 }
35
Popular Tags