KickJava   Java API By Example, From Geeks To Geeks.

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


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="search_total")
9 public class SearchTotal {
10   /**
11    * CREATE TABLE `search_total` (
12    * `word` varchar(50) NOT NULL default '',
13    * `count` float default NULL,
14    * PRIMARY KEY (`word`)
15    * );
16    */

17
18   @Id
19   private String JavaDoc word;
20   private float count;
21 }
22
Popular Tags