KickJava   Java API By Example, From Geeks To Geeks.

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


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="variable")
9 public class Variable {
10   /**
11    * CREATE TABLE `variable` (
12    * `name` varchar(48) NOT NULL default '',
13    * `value` longtext NOT NULL,
14    * PRIMARY KEY (`name`)
15    * );
16    */

17
18   @Id
19   private String JavaDoc name;
20   private String JavaDoc value;
21 }
22
Popular Tags