---
title: "hibernate one to many 查询返回了重复的数据"
author: "kabike"
date: "2014-12-24T23:38:49Z"
tags: []
categories: ["开源软件"]
slug: "hibernate-one-to-many"
draft: false
lastmod: "2014-12-24T23:38:49Z"
id: 2169915
url: "https://kabike.iteye.com/blog/2169915"
---

很奇怪为什么设计成这样...
<https://developer.jboss.org/wiki/HibernateFAQ-AdvancedProblems#jive_content_id_Hibernate_does_not_return_distinct_results_for_a_query_with_outer_join_fetching_enabled_for_a_collection_even_if_I_use_the_distinct_keyword>