[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4005) Restrictions should honor expressions and functions

Atlassian Support (JIRA) noreply at atlassian.com
Wed Jul 1 13:25:15 EDT 2009


Restrictions should honor expressions and functions
---------------------------------------------------

                 Key: HHH-4005
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4005
             Project: Hibernate Core
          Issue Type: New Feature
            Reporter: Tarik Makota


When using Restrictions where 2 columns/properties need to be concatanated and then compared to value hibernate is unable to do so. Example:
PoJo:

TABLE SNIPPET:
----------------------------------------------
FIRSTNAME VARCHAR2(50)
LASTNAME VARCHAR2(50)

JAVA ENTITY:
----------------------------------------------
@Colum (name="FIRSTNAME")
private String firstName;
@Colum (name="LASTNAME")
private String lastName;

ACTUAL PROBLEM (trivial example):
-----------------------------------------------
Criteria crit.add(Restrictions.in( "concat(firstName,lastName) ", parmUserFullName)); << concat doesnt work 

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