bug fix:Error creating bean with name ‘entityManagerFactory‘
This commit is contained in:
parent
fd72129e4e
commit
b9c8cd892c
@ -11,8 +11,12 @@ import lombok.NoArgsConstructor;
|
|||||||
@Table(name = "MerchantsPassword")
|
@Table(name = "MerchantsPassword")
|
||||||
public class MerchantsPassword {
|
public class MerchantsPassword {
|
||||||
@Id
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
private Long merchantsID;
|
||||||
|
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@PrimaryKeyJoinColumn(name = "merchantID", referencedColumnName = "id")
|
@JoinColumn(name = "merchantsID", referencedColumnName = "id")
|
||||||
private Merchants merchants;
|
private Merchants merchants;
|
||||||
|
|
||||||
private String password;
|
private String password;
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,12 @@ import lombok.NoArgsConstructor;
|
|||||||
@Table(name = "UsersPassword")
|
@Table(name = "UsersPassword")
|
||||||
public class UsersPassword {
|
public class UsersPassword {
|
||||||
@Id
|
@Id
|
||||||
@OneToOne
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@PrimaryKeyJoinColumn(name = "userID", referencedColumnName = "id")
|
private Long id;
|
||||||
|
|
||||||
|
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "usersID", referencedColumnName = "id")
|
||||||
private Users users;
|
private Users users;
|
||||||
|
|
||||||
private String password;
|
private String password;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user