orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.74k stars 871 forks source link

[orientdb-object] CascadeType Delete doesn't work in super-class #3172

Closed neuhausjulian closed 9 years ago

neuhausjulian commented 9 years ago

Project: orientdb-object

Cascade delete only works for the class which should be deleted. The fields in the super-class will not be affected

neuhausjulian commented 9 years ago

the method getCascadeDeleteFields(String iClassName) is looking after entries of fields to delete by classname, in the mao cascadeDeleteFields and ignores cases with superclasses. Now the method looks after the registered class with the name iClassName and returns the result of getCascadeDeleteFields(Class<?> iClass) which handles superclasses

Pull-Request: https://github.com/orientechnologies/orientdb/pull/3173