I am using TableUtils to generate my tables with ORMLite. Everything is working just fine if I use ORMLite for all operations. However, when I try to perform a join query using something else, it complains about missing foreign key relationship.
If I look in the database, I can see that the column is not set to be a foreign key.
I defined the relationship using the following annotation:
@DatabaseField(canBeNull = true, foreign = true, foreignAutoCreate = true, foreignAutoRefresh = true, foreignColumnName="id")
protected CoatedSampleEntity coatedSample;
Is there anyway to get the TableUtil to flag this fields as a foreign key when I generate the tables?
Thanks for your time!