mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 08:23:15 +00:00
source: WIP Database
This commit is contained in:
parent
e19bfb7f09
commit
26df200fe4
|
@ -1,4 +1,20 @@
|
||||||
package one.nem.lacerta.source.database;
|
package one.nem.lacerta.source.database;
|
||||||
|
|
||||||
public class LacertaDatabase {
|
import androidx.room.Database;
|
||||||
|
|
||||||
|
// Entities
|
||||||
|
import one.nem.lacerta.source.database.entity.Tag;
|
||||||
|
import one.nem.lacerta.source.database.entity.Document;
|
||||||
|
import one.nem.lacerta.source.database.entity.Library;
|
||||||
|
|
||||||
|
// Daos
|
||||||
|
import one.nem.lacerta.source.database.dao.TagDao;
|
||||||
|
import one.nem.lacerta.source.database.dao.DocumentDao;
|
||||||
|
import one.nem.lacerta.source.database.dao.LibraryDao;
|
||||||
|
|
||||||
|
@Database(entities = {Tag.class, Document.class, Library.class}, version = 1)
|
||||||
|
public abstract class LacertaDatabase {
|
||||||
|
public abstract TagDao tagDao();
|
||||||
|
public abstract DocumentDao documentDao();
|
||||||
|
public abstract LibraryDao libraryDao();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user