-
Notifications
You must be signed in to change notification settings - Fork 306
Closed
Description
@Entity
public class NewsGroup {
@SerializedName("id")
@Id(assignable = true)
private long id;
@SerializedName("name")
private String name;
@SerializedName("icon")
private String icon;
@SerializedName("color")
private String color;
@SerializedName("group")
@Backlink
List<NewsCategory> groups;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public List<NewsCategory> getGroups() {
return groups;
}
public void setGroups(List<NewsCategory> groups) {
this.groups = groups;
}
}
@Entity
public class NewsCategory {
@SerializedName("id")
@Id(assignable = true)
private long id;
@SerializedName("name")
private String name;
@SerializedName("icon")
private String icon;
@SerializedName("color")
private String color;
@Relation
NewsGroup group;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public NewsGroup getGroup() {
return group;
}
public void setGroup(NewsGroup group) {
this.group = group;
}
}
when build project :
NewsCategoryCursor.java :
Error:(51, 45) error: cannot find symbol variable groupToOne
Error:(70, 37) error: cannot find symbol variable groupToOne
NewsGroup_.java
Error:(106, 30) error: cannot find symbol variable groupToOne
Metadata
Metadata
Assignees
Labels
No labels