[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5668) alias other than {this} does not work in sqlRestriction
Dave (JIRA)
noreply at atlassian.com
Fri Oct 15 10:45:48 EDT 2010
alias other than {this} does not work in sqlRestriction
-------------------------------------------------------
Key: HHH-5668
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5668
Project: Hibernate Core
Issue Type: Bug
Components: query-criteria
Environment: ALL
Reporter: Dave
DetachedCriteria c = ..
c.createAlias("teacher","t").add(Restrictions.sqlRestriction("locate('abc', t.name)=2"));
it caused sql error. It allows {this} alias only.
all aliases defined should be allowed in sql query.
--
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