We have issue with query which is working with LocalTime on MSSQL DB
Our entity has field
@Column(name = "receipt_time", nullable = false)
private LocalTime receiptTime;
Everything works fine except when querying i.e. using spring-data-jpa query
boolean existsByReceiptTime(LocalTime time);
Returns The data types time and datetime are incompatible in the equal to operator.
I tried to resolve with sendTimeAsDateTime, but it didn't work. The url string was not accepted. Then I tried with some AttributeConverters to no avail. Any other possible advices? NOTE: I really like to stay with LocalTime type.
UPDATE: query generated is
Hibernate: select TOP(?) receipt0_.id as col_0_0_ from receipt receipt0_ where receipt0_.receipt_time=?' is the query.