KickJava   Java API By Example, From Geeks To Geeks.

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


1 package demo.drupal.persistence;
2
3 import javax.persistence.Table;
4
5 // XXX: no primary key @Entity
6
@Table(name="search_dataset")
7 public class SearchDataset {
8   /**
9    * CREATE TABLE `search_dataset` (
10    * `sid` int(10) unsigned NOT NULL default '0',
11    * `type` varchar(16) default NULL,
12    * `data` longtext NOT NULL,
13    * KEY `sid_type` (`sid`,`type`)
14    * );
15    */

16
17   private int sid;
18   private String JavaDoc type;
19   private String JavaDoc data;
20 }
21
Popular Tags