---
title: "hibernate里面使用带on条件的left join"
author: "wl1985"
date: "2007-04-23T02:46:17Z"
tags: []
slug: "hibernate-on-left-join"
draft: false
lastmod: "2007-04-23T02:46:17Z"
id: 108497
url: "https://wl1985.iteye.com/blog/108497"
---

关键字: 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 &gt;=curdate() where s.id is null 在hibernate中要使...  
[\[阅读全文\]](http://dxjsunday.blog.hexun.com/9002666_d.html)  
[\[和讯博客\]](http://blog.hexun.com/)