KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > entity > ZipCode


1 //$Id: ZipCode.java,v 1.1 2005/06/27 17:02:08 epbernard Exp $
2
package org.hibernate.test.annotations.entity;
3
4 import javax.persistence.Entity;
5 import javax.persistence.AccessType;
6 import javax.persistence.Id;
7
8 import org.hibernate.annotations.Cache;
9 import org.hibernate.annotations.CacheConcurrencyStrategy;
10
11 /**
12  * @author Emmanuel Bernard
13  */

14 @Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
15 @Entity(access = AccessType.FIELD)
16 @org.hibernate.annotations.Entity(mutable = false)
17 public class ZipCode {
18     @Id
19     public String JavaDoc code;
20 }
21
Popular Tags