white knight

导航

 
@Entity
@Table(name = "TABLE_NAME")
@IdClass(PK.class)
public class TableName implements Serializable{
    @Id
    @Column(name="ID1")
    private String id1;
    @Id
    @Column(name="ID2")
    private String id2;
    @Column(name="OTHER")
    private String other;





public class PK implements Serializable {
    private String id1;
    private String id2;
}
posted on 2018-03-26 11:15  white knight  阅读(105)  评论(0编辑  收藏  举报