KickJava   Java API By Example, From Geeks To Geeks.

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


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="locales_meta")
9 public class LocaleMeta {
10   /**
11    * CREATE TABLE `locales_meta` (
12    * `locale` varchar(12) NOT NULL default '',
13    * `name` varchar(64) NOT NULL default '',
14    * `enabled` int(2) NOT NULL default '0',
15    * `isdefault` int(2) NOT NULL default '0',
16    * `plurals` int(1) NOT NULL default '0',
17    * `formula` varchar(128) NOT NULL default '',
18    * PRIMARY KEY (`locale`)
19    * );
20    */

21
22   @Id
23   private String JavaDoc locale;
24   private String JavaDoc name;
25   private int enabled;
26   private int isdefault;
27   private int plurals;
28   private String JavaDoc formula;
29 }
30
Popular Tags