ORMLite Android Users › Is there a best way to let Jackson and ORMLite cooperate with each other

40 views
Skip to first unread message

lsxiao

unread,
Nov 8, 2015, 12:11:24 AM11/8/15
to ORMLite Android Users
such as follow,the User model must has two variable.

@DatabaseTable(tableName = "Users")
public class User {
  @DatabaseField(generatedId = true)
  @JsonProperty("id")
  int id;

  @DatabaseField
  @JsonProperty("name")
  String name;

  @ForeignCollectionField
  ForeignCollection<Image> imageCollection;

  @JsonProperty("images")
  ArrayList<Image> images;
}



Reply all
Reply to author
Forward
0 new messages