KickJava   Java API By Example, From Geeks To Geeks.

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


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="url_alias")
9 public class UrlAlias {
10   /**
11    * CREATE TABLE `url_alias` (
12    * `pid` int(10) unsigned NOT NULL auto_increment,
13    * `src` varchar(128) NOT NULL default '',
14    * `dst` varchar(128) NOT NULL default '',
15    * PRIMARY KEY (`pid`),
16    * UNIQUE KEY `dst` (`dst`),
17    * KEY `src` (`src`)
18    * );
19    */

20
21   @Id
22   private int pid;
23   private String JavaDoc src;
24   // unique:
25
private String JavaDoc dst;
26 }
27
Popular Tags