ORMLite many to many relation

view story

http://stackoverflow.com – In order to make a many to many relation beetween these two class with ORMLite : @DatabaseTable(tableName = "test1") public class Test1 { @ForeignCollectionField private ForeignCollection<Test2> test2Collection; } @DatabaseTable(tableName = "test2") public class Test2{ @ForeignCollectionField private ForeignCollection<Test1> test1Collection; } I'm facing to the problem that ORMLite at the tables creation, don't know about the Foreign Keys beetween this class.. In order to make this relation do I have to add a single ForeignDtabaseField on each class like that : (HowTos)