Dynamic database table name

23 צפיות
מעבר להודעה הראשונה שלא נקראה

Ori S

לא נקראה,
10 בינו׳ 2016, 16:02:1710.1.2016
עד 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

השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות