[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4590) CASTs from CriteriaBuilder.toXXX methods still need to be fleshed out

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Dec 15 13:13:29 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34962#action_34962 ] 

Steve Ebersole commented on HHH-4590:
-------------------------------------

accounted for sql cast types from CastFunction.  However, the intent of these toXXX() still largely undefined and we may not be able to use sql casting as we currently arer (the javadocs say toXXX methods are supposed to return the same Expression *instance*; yuck!)

> CASTs from CriteriaBuilder.toXXX methods still need to be fleshed out
> ---------------------------------------------------------------------
>
>                 Key: HHH-4590
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4590
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: entity-manager, query-criteria, query-hql
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>          Time Spent: 30 minutes
>  Remaining Estimate: 0 minutes
>
> The difficulty here is in terms of SELECT clause.  If the casts are to be allowed in the SELECT clause then we need to dynamically account for the underlying org.hibernate.type.Type to use to read the results.
> Problematic because criteria is supposed to mirror the capabilities of the "query language", but there is no mention of any such functionality in the "query language" section.

-- 
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