Skip to content

Instantly share code, notes, and snippets.

@sienatime
Created November 11, 2018 20:44
Show Gist options
  • Save sienatime/ae131821d1e11e37c668c99200a19b1e to your computer and use it in GitHub Desktop.
Save sienatime/ae131821d1e11e37c668c99200a19b1e to your computer and use it in GitHub Desktop.
@Fts4(contentEntity = Entry.class)
@Entity(tableName = "entriesFts")
public class EntryFts {
@ColumnInfo(name = "primary_kanji")
private String primaryKanji;
@NonNull
@ColumnInfo(name = "primary_reading")
private String primaryReading;
@ColumnInfo(name = "other_kanji")
private String otherKanji;
@ColumnInfo(name = "other_readings")
private String otherReadings;
public EntryFts(String primaryKanji, @NonNull String primaryReading, String otherKanji,
String otherReadings) {
this.primaryKanji = primaryKanji;
this.primaryReading = primaryReading;
this.otherKanji = otherKanji;
this.otherReadings = otherReadings;
}
public String getPrimaryKanji() {
return primaryKanji;
}
@NonNull public String getPrimaryReading() {
return primaryReading;
}
public String getOtherKanji() {
return otherKanji;
}
public String getOtherReadings() {
return otherReadings;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment