[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5108) CriteriaQuery: Support equals(pathToManyToOne, entity) on entities
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Apr 13 11:01:58 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36413#action_36413 ]
Emmanuel Bernard commented on HHH-5108:
---------------------------------------
A workaround is to use id for comparison
cb.equals( entity.get(Entity_.association).get(AssociatedEntity_.id), associatedEntity.getId() );
> CriteriaQuery: Support equals(pathToManyToOne, entity) on entities
> ------------------------------------------------------------------
>
> Key: HHH-5108
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5108
> Project: Hibernate Core
> Issue Type: Bug
> Components: entity-manager
> Affects Versions: 3.5.0-Final
> Reporter: Emmanuel Bernard
>
> I wonder if such a support is expected by the spec and if no, are we willing to support it.
--
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