关键字: Hibernate hibernate 针对信用卡Card的评分Score ,两者的关系是one-to-many. 现在需要查询没有评分过或者评分已经实效的那些卡片。 在mysql下 sql: select c.* from card c left join score s on s.card_id = c.id and s.invalid_date >=curdate() where s.id is null 在hibernate中要使...
[阅读全文] [和讯博客]
关键字: Hibernate hibernate 针对信用卡Card的评分Score ,两者的关系是one-to-many. 现在需要查询没有评分过或者评分已经实效的那些卡片。 在mysql下 sql: select c.* from card c left join score s on s.card_id = c.id and s.invalid_date >=curdat...