我有这两个课
@DatabaseTable
public class User {
@DatabaseField(generatedId=true)
private int _id;
@DatabaseField
private String name;
@DatabaseField
private String password;
@DatabaseField(canBeNull = false, foreign = true, unique = true)
private Item item;
和
@DatabaseTable
public class Item {
@DatabaseField(generatedId=true)
private int _id;
@DatabaseField
private String name;
我想使用平台从数据库中查询单个用户,因为它们是独一无二的,我该怎么做?