I want to use ormlite in my android project, but I don't know how to solve the multi-table mapping.Some suggest?
Asked
Active
Viewed 2,038 times
1
-
What problem are you facing in multi table mapping, are you confused as to how to generate the Config.txt file for the SEcond table ? – Some one Some where Mar 21 '12 at 04:55
-
I haven't use Config.txt file, I use annotations to mark classes to be persisted. – BlackDev Mar 21 '12 at 05:04
-
Please provide more information. This is an extremely short question with no background. All we can do is guess at what you are talking about. – Gray Mar 21 '12 at 14:08
-
Well , I just don't know how to model a many-to-many relationship with ORMLite. – BlackDev Mar 22 '12 at 03:11
1 Answers
1
ormlite provide ForeignKey concept . Using ForeignKey you can solve the problem of multiple table mapping . Please see below link (How to use Foreign).
Also see this link may be its help you ORMlite Android foreign key support

Community
- 1
- 1

Abhishek Modi
- 41
- 4