[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-5577) Hibernate Criteria Query uses inline values insted of prepared statements params for some values
Steve Ebersole (JIRA)
noreply at atlassian.com
Fri Sep 17 09:09:22 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HHH-5577.
-------------------------------
Resolution: Rejected
This is not a bug. If you want to use a parameter, then define a parameter via the CriteriaBuilder
> Hibernate Criteria Query uses inline values insted of prepared statements params for some values
> ------------------------------------------------------------------------------------------------
>
> Key: HHH-5577
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5577
> Project: Hibernate Core
> Issue Type: Bug
> Affects Versions: 3.6.0.CR1
> Reporter: Radosław Smogura
> Priority: Minor
> Attachments: hibernate-bugs.zip
>
>
> When I use criteria api and e.g. try to do equal against path expression and Integer number I got query that renders to e.g where val = 1, instead of val = ?
> This affects performance, because disallow to use prepared statements cache.
> This behaviour occurs only for some types, e.g. dates uses prepared statements params.
--
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