[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2037) provide Query.setProperties(Map)
Mark Proctor (JIRA)
noreply at atlassian.com
Tue Aug 29 11:44:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2037?page=comments#action_24219 ]
Mark Proctor commented on HHH-2037:
-----------------------------------
>From a declarative language point of view it would be nice to make that more concise:
$cheese : Cheese() from session.listNamedQuery( "thename", {"key1" => "value1", "key2" => "value2" } )
Maybe that same concept could be used with embedded HQL too?
> 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
> Priority: Critical
>
>
> 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