History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19186
Type: New Feature New Feature
Status: Open Open
Assignee: Gregory Shrago
Reporter: Taras Tielkes
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

resolve named parameters for org.hibernate.SQLQuery

Created: 16 Aug 08 07:29   Updated: 17 Aug 08 14:11
Component/s: J2EE.Hibernate, SQL

Build: 8,718
Severity: High


 Description  « Hide
Similar to current named param support for regular HQL queries.
Session session = getSession();

session
	.createSQLQuery(
		"update  SOME_TABLE set SOME_LEVEL=:newLevel where SOME_LEVEL>:newLevel and OTHER_ID=:otherId")
	.setParameter("newLevel", myNewLevel).setParameter(
		"otherId", myFoo.getId()).executeUpdate();


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.