You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
This problem occurs while using DATE_INTERVAL operation and JPQL condition in the Filter.
Steps to reproduce
case 1:
Create in the filter JPQL condition with "No parameter" type
Write macro with LocalTime property, e.g. @between({E}.myLocalTimeProperty, now, now + 1, minute).
Apply this condition
AR
java.lang.IllegalArgumentException: Unsupported date type class java.time.LocalTime
at io.jmix.core.DateTimeTransformations.newUnsupportedTypeException(DateTimeTransformations.java:158)
at io.jmix.core.DateTimeTransformations.transformFromZdtInternal(DateTimeTransformations.java:99)
at io.jmix.core.DateTimeTransformations.transformFromZDT(DateTimeTransformations.java:84)
at io.jmix.data.impl.querymacro.TimeBetweenQueryMacroHandler.getParams(TimeBetweenQueryMacroHandler.java:143)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.addMacroParams(JmixEclipseLinkQuery.java:730)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.getQuery(JmixEclipseLinkQuery.java:495)
at io.jmix.eclipselink.impl.JmixEclipseLinkQuery.getResultList(JmixEclipseLinkQuery.java:130)
at io.jmix.eclipselink.impl.JpaDataStore.executeQuery(JpaDataStore.java:495)
at io.jmix.eclipselink.impl.JpaDataStore.loadAll(JpaDataStore.java:166)
at io.jmix.core.datastore.AbstractDataStore.loadList(AbstractDataStore.java:127)
at io.jmix.core.impl.DataManagerImpl.loadList(DataManagerImpl.java:102)
at io.jmix.ui.model.impl.CollectionLoaderImpl._load(CollectionLoaderImpl.java:92)
at io.jmix.ui.model.impl.CollectionLoaderImpl.load(CollectionLoaderImpl.java:75)
at io.jmix.ui.component.impl.AbstractSingleFilterComponent.apply(AbstractSingleFilterComponent.java:308)
at io.jmix.ui.component.impl.AbstractSingleFilterComponent.onValueChanged(AbstractSingleFilterComponent.java:301)
at io.jmix.core.common.event.EventHub.publish(EventHub.java:170)
at io.jmix.ui.component.impl.AbstractComponent.publish(AbstractComponent.java:85)
at io.jmix.ui.component.impl.AbstractValueComponent.componentValueChanged(AbstractValueComponent.java:154)
at io.jmix.ui.component.impl.AbstractField.lambda$attachValueChangeListener$ab1c93c8$1(AbstractField.java:145)
case 2:
In the Filter add condition for the LocalTime property
Select "in interval" operation
Select, e.g.: LAST - 2 - minutes
Close dialog.
AR
The same stacktrace.
The text was updated successfully, but these errors were encountered:
knstvk
changed the title
TimeBetweenQueryMacroHandler does not support LocalTime and OffestTime
TimeBetweenQueryMacroHandler does not support LocalTime and OffsetTime
May 25, 2021
Description
This problem occurs while using DATE_INTERVAL operation and JPQL condition in the Filter.
Steps to reproduce
case 1:
@between({E}.myLocalTimeProperty, now, now + 1, minute)
.AR
case 2:
AR
The same stacktrace.
The text was updated successfully, but these errors were encountered: