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
Version of Thymeleaf (and any involved extensions) you are using.
3.1.1
Environment: versions of Spring, Spring Boot, or any other
relevant libraries.
spring boot 3.0.6
hibernate 6.2.6
Detailed steps to reproduce your issue.
So I have hibernate entity that has a date(java.util.Date) field
protected Date submitDate;
which in runtime seems to become java.sql.Timestamp(it extends java.util.Date)
and in my template I have
${order.submitDate.compareTo(someAnotherDate)>0}
And I got exception, calling method compareTo is forbidden for type class java.sql.Timestamp
While my tests are passing, but in my test I mock DB/hibernate layer and so my entity has java.util.Date not Timestamp.
So I think java.sql.Timestamp should be also added to allowed list
The text was updated successfully, but these errors were encountered:
Version of Thymeleaf (and any involved extensions) you are using.
3.1.1
Environment: versions of Spring, Spring Boot, or any other
relevant libraries.
spring boot 3.0.6
hibernate 6.2.6
So I have hibernate entity that has a date(java.util.Date) field
protected Date submitDate;
which in runtime seems to become java.sql.Timestamp(it extends java.util.Date)
and in my template I have
${order.submitDate.compareTo(someAnotherDate)>0}
And I got exception, calling method compareTo is forbidden for type
class java.sql.Timestamp
While my tests are passing, but in my test I mock DB/hibernate layer and so my entity has java.util.Date not Timestamp.
So I think java.sql.Timestamp should be also added to allowed list
The text was updated successfully, but these errors were encountered: