2
我在数据库表得到的: 一)rb_user: id_user,用户名,... B)rb_user_password: ID,USER_ID,密码。休眠不同的名称外键列
如何在我的java类中进行注释?我:
@Entity
@Table(name="rb_users")
@SecondaryTable(name="rb_user_password")
public class User {
@Id
@Column(name="id_user")
private int id;
private String name;
...
@Column(table="rb_user_password", name="password")
private String password
我这些异常:
org.postgresql.util.PSQLException: ERROR: column user0_1_.id_user does not exist
我知道它,因为我得到了主键“id_user”,并在我的密码列名表“user_ID的”