Add missing @Cascade annotiation
parent
22eb87f75b
commit
347f614c2d
|
|
@ -19,6 +19,8 @@
|
|||
package org.librecms.assets;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIdentityReference;
|
||||
import org.hibernate.annotations.Cascade;
|
||||
import org.hibernate.annotations.CascadeType;
|
||||
import org.hibernate.envers.Audited;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -64,6 +66,7 @@ public class ContactEntry implements Serializable {
|
|||
// @Column(name = "ENTRY_KEY", length = 255, nullable = false)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "CONTACT_ENTRY_KEY_ID")
|
||||
@Cascade(CascadeType.ALL)
|
||||
@JsonIdentityReference(alwaysAsId = true)
|
||||
private ContactEntryKey key;
|
||||
|
||||
|
|
@ -102,7 +105,6 @@ public class ContactEntry implements Serializable {
|
|||
// public void setKey(final String key) {
|
||||
// this.key = key;
|
||||
// }
|
||||
|
||||
public ContactEntryKey getKey() {
|
||||
|
||||
return key;
|
||||
|
|
@ -121,8 +123,6 @@ public class ContactEntry implements Serializable {
|
|||
this.value = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 7;
|
||||
|
|
|
|||
Loading…
Reference in New Issue