mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
source: WIP Database アノテーション付与
This commit is contained in:
parent
26df200fe4
commit
8a789ffe7d
|
@ -3,6 +3,8 @@ package one.nem.lacerta.source.database;
|
||||||
import androidx.room.Database;
|
import androidx.room.Database;
|
||||||
|
|
||||||
// Entities
|
// Entities
|
||||||
|
import dagger.hilt.InstallIn;
|
||||||
|
import dagger.hilt.components.SingletonComponent;
|
||||||
import one.nem.lacerta.source.database.entity.Tag;
|
import one.nem.lacerta.source.database.entity.Tag;
|
||||||
import one.nem.lacerta.source.database.entity.Document;
|
import one.nem.lacerta.source.database.entity.Document;
|
||||||
import one.nem.lacerta.source.database.entity.Library;
|
import one.nem.lacerta.source.database.entity.Library;
|
||||||
|
@ -13,6 +15,7 @@ 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 = {Tag.class, Document.class, Library.class}, version = 1)
|
@Database(entities = {Tag.class, Document.class, Library.class}, version = 1)
|
||||||
|
@InstallIn(SingletonComponent.class)
|
||||||
public abstract class LacertaDatabase {
|
public abstract class LacertaDatabase {
|
||||||
public abstract TagDao tagDao();
|
public abstract TagDao tagDao();
|
||||||
public abstract DocumentDao documentDao();
|
public abstract DocumentDao documentDao();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user