Initial stub migrate to androidx room

This commit is contained in:
tarsin committed 2022-08-03 21:59:55 +08:00
1 parent 19891e6768
commit 9cb22b6e17
27 files changed
+988 -2786

No files matched your search

@@ -1,35 +1,20 @@
package com.hippo.ehviewer.dao;
import org.greenrobot.greendao.annotation.*;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table "DOWNLOAD_LABELS".
*/
@Entity(nameInDb = "DOWNLOAD_LABELS")
@Entity(tableName = "DOWNLOAD_LABELS")
public class DownloadLabel {
@Id
@PrimaryKey
@ColumnInfo(name = "_id")
private Long id;
@ColumnInfo(name = "LABEL")
private String label;
@ColumnInfo(name = "TIME")
private long time;
@Generated
public DownloadLabel() {
}
public DownloadLabel(Long id) {
this.id = id;
}
@Generated
public DownloadLabel(Long id, String label, long time) {
this.id = id;
this.label = label;
this.time = time;
}
public Long getId() {
return id;
}