[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3995) Restrictions should honor expressions and functions
Tarik Makota (JIRA)
noreply at atlassian.com
Fri Jun 26 09:43:57 EDT 2009
Restrictions should honor expressions and functions
---------------------------------------------------
Key: HHH-3995
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3995
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