1 22 package org.jboss.ejb3.test.regression; 23 24 import javax.persistence.Embeddable; 25 import java.io.Serializable ; 26 27 32 @Embeddable 33 public class AccountNamePK implements Serializable 34 { 35 private long accountId; 36 private String locale; 37 38 public AccountNamePK(long accountId, String local) 39 { 40 this.accountId = accountId; 41 this.locale = local; 42 } 43 44 public AccountNamePK() {} 45 46 public long getAccountId() 47 { 48 return accountId; 49 } 50 51 public void setAccountId(long accountId) 52 { 53 this.accountId = accountId; 54 } 55 56 public String getLocale() 57 { 58 return locale; 59 } 60 61 public void setLocale(String locale) 62 { 63 this.locale = locale; 64 } 65 } 66 | Popular Tags |