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")
|
||||
public class MerchantsPassword {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long merchantsID;
|
||||
|
||||
@OneToOne
|
||||
@PrimaryKeyJoinColumn(name = "merchantID", referencedColumnName = "id")
|
||||
@JoinColumn(name = "merchantsID", referencedColumnName = "id")
|
||||
private Merchants merchants;
|
||||
|
||||
private String password;
|
||||
}
|
||||
|
@ -11,8 +11,12 @@ import lombok.NoArgsConstructor;
|
||||
@Table(name = "UsersPassword")
|
||||
public class UsersPassword {
|
||||
@Id
|
||||
@OneToOne
|
||||
@PrimaryKeyJoinColumn(name = "userID", referencedColumnName = "id")
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "usersID", referencedColumnName = "id")
|
||||
private Users users;
|
||||
|
||||
private String password;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user