mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
Databaseに追加 WIP
This commit is contained in:
parent
53b3ebebef
commit
88546fe89a
|
@ -7,13 +7,15 @@ import androidx.room.RoomDatabase;
|
||||||
import one.nem.lacerta.source.database.entity.TagEntity;
|
import one.nem.lacerta.source.database.entity.TagEntity;
|
||||||
import one.nem.lacerta.source.database.entity.DocumentEntity;
|
import one.nem.lacerta.source.database.entity.DocumentEntity;
|
||||||
import one.nem.lacerta.source.database.entity.LibraryEntity;
|
import one.nem.lacerta.source.database.entity.LibraryEntity;
|
||||||
|
import one.nem.lacerta.source.database.entity.VcsRevEntity;
|
||||||
|
import one.nem.lacerta.source.database.entity.VcsLogEntity;
|
||||||
|
|
||||||
// Daos
|
// Daos
|
||||||
import one.nem.lacerta.source.database.dao.TagDao;
|
import one.nem.lacerta.source.database.dao.TagDao;
|
||||||
import one.nem.lacerta.source.database.dao.DocumentDao;
|
import one.nem.lacerta.source.database.dao.DocumentDao;
|
||||||
import one.nem.lacerta.source.database.dao.LibraryDao;
|
import one.nem.lacerta.source.database.dao.LibraryDao;
|
||||||
|
|
||||||
@Database(entities = {TagEntity.class, DocumentEntity.class, LibraryEntity.class}, version = 1)
|
@Database(entities = {TagEntity.class, DocumentEntity.class, LibraryEntity.class, VcsRevEntity.class, VcsLogEntity.class}, version = 1)
|
||||||
public abstract class LacertaDatabase extends RoomDatabase {
|
public abstract class LacertaDatabase extends RoomDatabase {
|
||||||
public abstract TagDao tagDao();
|
public abstract TagDao tagDao();
|
||||||
public abstract DocumentDao documentDao();
|
public abstract DocumentDao documentDao();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user