Hibernate:将几列映射到列表中

时间:2014-02-19 14:14:09

标签: java hibernate persistence

我有一个包含这些列的表:

n_id,d_id,val_1,val_2,val_3,...,val_50

如何映射此表?

如果可能,我想避免这种情况:

@Id
@Column(name = "D_ID")
private String id;
@Column(name = "N_ID")
private String nId;
@Column(name = "VAL_1")
private double val1;
@Column(name = "VAL_2")
private double val2;
@Column(name = "VAL_3")
private double val3;
...

0 个答案:

没有答案