Sqlite2CoreData
Sqlite2CoreData copied to clipboard
Can't achieve creation of relation to the same table
Hello ,
I like very much your tool as I will be using it to transform an SQLite database to the coredata model. However there is something I do not achieve, to create a "Parent/child" relationship from an entity to itself.
My SQLlite has a Foreign key but Sqlite2CoreData seems to ignore it, I would like to achieve something like this :
For information this is my table
CREATE TABLE IMstructure (
structureid integer PRIMARY KEY NOT NULL,
descriptionkey integer,
nameid integer NOT NULL,
patronym text,
parentid integer,
iconid integer,
FOREIGN KEY (parentid) REFERENCES IMstructure (structureid)
);
CREATE INDEX structure_name_id_idx ON IMstructure (nameid);
CREATE INDEX structure_parent_id_idx ON IMstructure (parentid);