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 Bernard13 */14 @Cache(usage = CacheConcurrencyStrategy.READ_ONLY)15 @Entity(access = AccessType.FIELD)16 @org.hibernate.annotations.Entity(mutable = false)17 public class ZipCode {18 @Id19 public String code;20 }21