1
我已經實體映射到表TABLE1與第COLUMN1和COLUMN2JPA 2.0地圖一個類
我有類ResViewer一個表的不同列
public class ResViewer() {
private boolean flag;
private int property;
...selectors
}
我有實體類
@Entity
@Table(name="TABLE1")
public class Table1() {
@Id
private long id;
private ResViewer res1;
private ResViewer res2;
...selectors
}
如何將類res1和res2的字段標誌映射到columnds COLUMN1和COLUMN2?
謝謝,工作很好 – Andrey 2012-02-22 07:05:33