我有一个表,贷款申请,其POJO是 class LoanApplication{
int id;
int loanNo;
...
}
我还有一个POJO class LoanFlow{
int id;
int loanId;
date reviewDate;
...
}
loanFlow的下面的LoanID是映射到外键添加另一个类的属性LoanApplication的ID
我很新的hibernate我有一个MySQL Query,我想用Hibernate criteria MySQL查询才达到相同的输出: SELECT *,
(case when status = 'Active'
then 'Can Login'
else 'Not able to login' end) as LoginStatus
FROM UserLoginTable
我想我的SQL查询转换为Hibernate查询 select * from user_projects where endDate is not null and startDate is not null and soft_delete=? and startDate<=? and
endDate>=? and endDate<=? and (endDate,user_id) in (sele