We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit cases added by PR #1445
Deleting OtoUser ... should cascade delete to OtoUserOptional due to the cascade ALL on the relationship.
The cascade should happen with both delete a bean and delete by query.
@Entity @Table(name = "oto_user_model") public class OtoUser extends BaseModel { String name; @OneToOne(optional = true, cascade = CascadeType.ALL) OtoUserOptional userOptional;
OtoUser someUser = new OtoUser("someUser"); OtoUserOptional userPref = new OtoUserOptional(...); ... Ebean.find(OtoUser.class) .where() ... .delete(); // should delete the associated OtoUserOptional
The text was updated successfully, but these errors were encountered:
#1447 - Delete query ... should honour cascading delete if defined
588aaf9
See also PR #1445 with the failing test case
rbygrave
No branches or pull requests
Unit cases added by PR #1445
Steps to reproduce
Deleting OtoUser ... should cascade delete to OtoUserOptional due to the cascade ALL on the relationship.
The cascade should happen with both delete a bean and delete by query.
The text was updated successfully, but these errors were encountered: