[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-730) Still incorrect FK circularity errors
cpp.expert (JIRA)
noreply at atlassian.com
Wed Nov 26 21:01:16 EST 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31832#action_31832 ]
cpp.expert commented on ANN-730:
--------------------------------
I still have this bug in 3.4.0.GA. Full call-stack is:
Caused by: java.lang.NullPointerException
at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:416)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:309)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1319)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at zef.singleton.Variables.<clinit>(Variables.java:33)
... 25 more
> Still incorrect FK circularity errors
> -------------------------------------
>
> Key: ANN-730
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-730
> Project: Hibernate Annotations
> Issue Type: Bug
> Affects Versions: 3.3.1.GA
> Environment: Hibernate 3.2.6.ga, HEM3.3.2.ga, HAN3.3.1.ga,
> JSE 1.6, DB2 8.2
> Reporter: Lars Heyden
> Fix For: 3.4.0.CR2
>
> Attachments: cyclic-test.zip
>
>
> This bug is related to ANN-694 (and some other issues).
> Correctly mapped JoinedSubclasses still get reported to have circularities in their FKs which is not the case.
> To reproduce the bug at least four entity classes must be in a joined class hierarchy. As in ANN-694 there is a workaround by renaming the tables to force another processing order.
> I've provided a small test case:
> It consists of four entities ClassA, ClassB, ClassC and ClassD mapped with InheritanceType.JOINED to the tables "class_a", "class_b", "class_c" and "class_1d". Because ClassD maps to table "class_1d" it gets processed first by the circularity check which raises the error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list