Question about mapping with join table . . .

38 views
Skip to first unread message

Deven Phillips

unread,
Nov 18, 2011, 10:52:36 AM11/18/11
to ORMLite Android Users
Is it possible to use an intermediate table to handle a mapping
between 2 entities? For example, I have an entity "Category" and an
entity "Node". Each node can be a member of multiple categories and
they are related by a join table called "node-categories". How would I
annotate my entities to make that work?

Thanks in advance!!!

Deven

Gray Watson

unread,
Nov 18, 2011, 5:03:45 PM11/18/11
to ormlite...@googlegroups.com
Take a look at the many-to-many example. I think it does something very similar:

http://ormlite.com/docs/examples

gray

Reply all
Reply to author
Forward
0 new messages