I have a unidirectional one to many relationship defined but I am getting a
foreign key constraint violation when attempting to run a delete on the
entity. It appears the delete statements are not being issued in the
correct order. The entity record is being deleted before the records with
the foreign key references.
Is there any way to get them ordered properly? Configuration details
follow..
OpenJPA 2.2.1-SNAPSHOT (Websphere Version)
Annotations on entity field
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval
= true)
@JoinColumn(name = "ID_XXX", referencedColumnName = "ID_XXX", nullable =
false)
foreign key constraint violation when attempting to run a delete on the
entity. It appears the delete statements are not being issued in the
correct order. The entity record is being deleted before the records with
the foreign key references.
Is there any way to get them ordered properly? Configuration details
follow..
OpenJPA 2.2.1-SNAPSHOT (Websphere Version)
Annotations on entity field
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval
= true)
@JoinColumn(name = "ID_XXX", referencedColumnName = "ID_XXX", nullable =
false)