原始查詢: SELECT * FROM SAVED_JOB2 S, JOB J WHERE J._id=S._id ORDER BY DATE_SAVED DESC
我怎樣才能實現排序列在連接表。我曾嘗試過: QueryBuilder<Job> queryBuilder = daoSession.queryBuilder(Job.class);
queryBuilder.join(JobDa
我實施用戶類爲: @Entity
public class User implements Serializable {
/** Serial version UID */
static final long serialVersionUID = 200L;
@Id
/** The user system id */
private long
我有2個型號是這樣的: @Entity
public class Book {
@Id
Long _id;
String name;
@ToMany(referencedJoinProperty = "bookId")
List<Chapter> chapters1;
@ToMany(referencedJoinProperty
我有這樣一個查詢: Select * from table where user = 'user1' or city = 'delhi';
我知道如何做到這一點的單用戶,但我沒有得到我怎麼能在下面的查詢使用or。 dao.queryBuilder()
.where(UserDao.Properties.UserId.eq(userId1))
.list();