Not seeing "REFERENCES" on table definitions when using foreign keys

10 views
Skip to first unread message

stephe...@gmail.com

unread,
Jan 27, 2017, 8:26:43 PM1/27/17
to ORMLite Android Users
I am using a field:
@DatabaseField( foreign = true, canBeNull = false, foreignAutoRefresh = true, columnName = CONTROL_ID_OID )
private Control control;


When I examine the sqlite table definitions it appears to be missing "REFERENCES", did I miss configuring something ?
Out of the box it is allowing the Control object to be deleted when there are references using it. When the Control is deleted I expect to see a sqlite exception like "unable to delete - foreign key in use".

Is ormlite able to use the underlying "REFERENCES" functionality ? If so, how do I make it work ?

-Thanks

Reply all
Reply to author
Forward
0 new messages