Browse Source

added cascade to address object, closes #1209

pull/1228/head
Justin Richer 8 years ago
parent
commit
1d7fba5d6e
  1. 3
      openid-connect-common/src/main/java/org/mitre/openid/connect/model/DefaultUserInfo.java

3
openid-connect-common/src/main/java/org/mitre/openid/connect/model/DefaultUserInfo.java

@ -21,6 +21,7 @@ import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
@ -369,7 +370,7 @@ public class DefaultUserInfo implements UserInfo {
* @see org.mitre.openid.connect.model.UserInfo#getAddress()
*/
@Override
@OneToOne(targetEntity = DefaultAddress.class)
@OneToOne(targetEntity = DefaultAddress.class, cascade = CascadeType.ALL)
@JoinColumn(name="address_id")
public Address getAddress() {
return address;

Loading…
Cancel
Save