latest
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.bookstore.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -23,6 +25,7 @@ public class UserBilling implements Serializable {
|
||||
private String userBillingZipcode;
|
||||
|
||||
@OneToOne(cascade = CascadeType.ALL)
|
||||
@JsonIgnore
|
||||
private UserPayment userPayment;
|
||||
|
||||
public Long getId() {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.bookstore.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -25,6 +27,7 @@ public class UserPayment implements Serializable {
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "user_id")
|
||||
@JsonIgnore
|
||||
private User user;
|
||||
|
||||
@OneToOne(cascade = CascadeType.ALL, mappedBy = "userPayment")
|
||||
|
||||
Reference in New Issue
Block a user