[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2037) provide Query.setProperties(Map)

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Tue Aug 29 12:58:24 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2037?page=comments#action_24221 ] 

Max Rydahl Andersen commented on HHH-2037:
------------------------------------------

mark:

dynamic/embedded hql is just as "easy":

$cheese : Cheese() from session.createQuery("select cheese from Products where ...").setProperties( {"key1" => "value1", "key2" => "value2" }).list()



> provide Query.setProperties(Map)
> --------------------------------
>
>          Key: HHH-2037
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2037
>      Project: Hibernate3
>         Type: Improvement

>     Versions: 3.2.0.cr4
>     Reporter: Max Rydahl Andersen
>     Assignee: Steve Ebersole
>      Fix For: 3.2.0.ga

>
>
> makes sense to have it similar to what setProperties(object) does.
> usecase is from drools that would like to do:
> rule "test from using a global"
> 	when
> 		$cheese : Cheese() from session.getNamedQuery("thename").setProperties( {"key1" => "value1", "key2" => "value2" }).list()
> 	then
> 	    System.out.println( list1 );
> 		list1.add( $cheese );
> end
> Mark would actually rather prefer having a shorthand method for that longish method in hibernate api, but that is another request ;)

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