Dynamic database table name

23 views
Skip to first unread message

Ori S

unread,
Jan 10, 2016, 4:02:17 PM1/10/16
to ORMLite Users
Hi all.

I hope someone could help with this matter:

Using @DatabaseTable annotation is dead simple, but it seems to accept static values only. So if I want to connect the same class to different database tables (having different names), I cannot use that annotation.

In short:

1) How to accomplish this functionality? (be able to use the same class, and its DAO, with different table names)
2) Is there a way also to auto-create the table if it doesn't exist?

Thank you in advance!

/OS

Reply all
Reply to author
Forward
0 new messages