I use ORM ku ActiveAndroid in the project. There was a problem that the cascade was not working. Not only did I not find the cascade insert, so the existing update and delete cascade also do not work. For example, so I specify the cascade:
@Column(name = "purchaseCalculation", onDelete = Column.ForeignKeyAction.CASCADE, onUpdate = Column.ForeignKeyAction.CASCADE) But in fact, the cascade works only for nesting at 1 level. For example, there is the User class, it contains an array of Item objects, which in turn contain Info . I delete User and expect all related objects to be deleted, but in fact only Item deleted, and Info remains.
Is there also a way to make a cascade insert?
ActiveAndroid— it’s enough to understand the general principles. Interested in the scriptcreate table, which generates your ORM - Barmaley