Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hibernate 3.X 集合类型批注(@oneTomany..) 使用Set会导致Bug? #26

Open
GoogleCodeExporter opened this issue Aug 11, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

经多次测试 发现如下Bug
对于一对多(oneToMany ) ,rapid-framework  自动生成代码的都 
采用java.util.Set.
但是hibernate 3.X 集合类型批注(@oneTomany..) 使用Set会导致Bug
在延迟加载时候,只能导致读取子表(一对多的 "多" 
所对于的表)一条记录,这可能是
hibernate Bug!

建议:将模板的java.util.Set 修正为 java.util.List or 
java.util.Collection!

Original issue reported on code.google.com by qiquan...@gmail.com on 23 Nov 2009 at 5:12

@GoogleCodeExporter
Copy link
Author

同样也遇到这样的问题。@OneToMany的集合,size只有一个。

Original comment by linle...@gmail.com on 1 Dec 2010 at 9:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant