Skip to content
New issue

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

EditView: handling of orphan removal & ignoring errors for hidden fields #36

Closed
ikostenko opened this issue Feb 10, 2013 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@ikostenko
Copy link
Member

When editing a record of an entity where @OneToMany field has orphanRemoval = true, an alert is displayed containing the following message
"A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: org.lightadmin.demo.model.Customer.addresses; nested exception is org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: org.lightadmin.demo.model.Customer.addresses"

To reproduce, try to save any entry of "Customer" entity.

Question 1. What should be the expected result?
Question 2. adresses field is not specified in Form View of CustomerAdministration. Shouldn't errors for fields hidden from Form View be ignored?

@ghost ghost assigned max-dev Feb 10, 2013
@ikostenko ikostenko mentioned this issue Feb 10, 2013
@ghost ghost assigned aliubunia Feb 11, 2013
aliubunia added a commit that referenced this issue Feb 16, 2013
of setting new one to enable support for orphanRemoval=true. (#36)
@aliubunia
Copy link
Member

Fixed by dd430fb
We will experience constraint violation if orphanRemoval=true and any element removed from the association is still referenced from other areas of the schema (no implicit cascading)

@ghost ghost assigned ikostenko Feb 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants