Integrity violation when trying to delete entity with compostion attribute type and soft delete unchecked

  • Created in cuba studio entity “Person” with BaseUuidEntity Parent Class and unchecked soft delete
  • Created in cuba studio entity "PersonDetail’ with with BaseUuidEntity Parent Class as well and unchecked soft delete
  • Added a property “personDetails” with composition attribute to Person
  • Created browse and edit generic ui views and controllers with studio
  • Runned app normally.

Created a Person with Person Details
Tried to “Remove” created person entity

Error shows up:
55

See Attached project: prueba.zip (100.5 KB)

Hi,

You need to set ‘On delete inverse’ for person attribute in PersonDetail entity.
Select CASCADE option if you want PersonDetail to be deleted when deleting Person (which is assumed if you use composition).

Hi, thanks, it worked.

I was following procedures from “Quick start” video High productivity application development platform (min 2.30) and assumed that Cuba Studio would set this values by default as for StandardEntity parent class.

Is it possible that this could be a default setting for Cuba Studio when creating composition property under BaseUuidEntity Parent Class in the future?