Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-17050 (
https://hibernate.atlassian.net/browse/HHH-17050?atlOrigin=eyJpIjoiMzg5MD...
)
Re: JPA Criteria Queries using datediff and temporal units broken due to SqmDurationUnit
cast (
https://hibernate.atlassian.net/browse/HHH-17050?atlOrigin=eyJpIjoiMzg5MD...
)
Hi Chris Popp (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) , thanks for reporting the issue. Currently, the Criteria API doesn’t expose a function
like DATEDIFF , though we already support timestampadd , timestampdiff (and dateadd ,
datediff as synonyms) in HQL.
We plan to make this functions available through the custom HibernateCriteriaBuilder
interface, like we already did for datetime truncation (
https://hibernate.atlassian.net/browse/HHH-16130 ).
(
https://hibernate.atlassian.net/browse/HHH-17050#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17050#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100234- sha1:6fcbbaf )