andlio

Untitled

May 11th, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. @Entity @Table(name="compliance")
  2. @SecondaryTable(name="moc", pkJoinColumns={@PrimaryKeyJoinColumn(name="moc_id", referencedColumnName="id")})
  3. public class Compliance implements Serializable {
  4.     private static final long serialVersionUID = 5241521905619392565L;
  5.  
  6.     @Id @GeneratedValue(strategy=GenerationType.AUTO)
  7.     private int id = 0;
  8.        
  9.     @Column(name="id", table="moc", insertable=false, updatable=false)
  10.     public int mocId = 0;
  11.     @Column(name="name", table="moc", insertable=false, updatable=false)
  12.     public String mocName = "";
  13.    
  14.     //...
  15. }
Advertisement
Add Comment
Please, Sign In to add comment