JPA:@ManyToOne关系的缺省列名映射
当我们有一个类时:
@Entity
Order implements Serializable {
@Id
private Integer id;
...
}
和:
@Entity
OrderLine implements Serializable {
@Id
private Integer id;
@ManyToOne
Order order;
...
}
属性顺序将映射到哪个行名?
order_id, ORDER_ID or Order_id?
(省略@JoinColumn(name='order_id')是故意的)