[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-879) Enable joining the same association twice with Criteria
Ali Ibrahim (JIRA)
noreply at atlassian.com
Thu Mar 15 19:26:10 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-879?page=comments#action_26467 ]
Ali Ibrahim commented on HHH-879:
---------------------------------
Hi,
The following is a simple hack to disable Hibernate's duplicate association check:
Change JoinWalker.isDuplicateAssociation(String, String[]) to always return false.
Note that this may cause any program with a mapping which has a non-lazy circular association to loop forever if there is a cycle in the object graph. For my research purposes this was fine because I never have non-lazy associations. Running Hibernate's unit tests, none of them actually loops forever and as I remember only a couple more unit tests fail mainly due to them expecting an association to be lazy when it isn't.
-Ali
> Enable joining the same association twice with Criteria
> -------------------------------------------------------
>
> Key: HHH-879
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-879
> Project: Hibernate3
> Type: Improvement
> Components: core
> Reporter: Vladimir Bayanov
>
>
> Make double joining the same association with Criteria.createCriteria possible. See: http://forum.hibernate.org/viewtopic.php?t=931249
--
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