Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
Core 2.1.0
-
None
-
None
Description
java mapping for MySql Time is java.sql.Time. It is a wrapper around the Date class. But whenever Time is saved this interceptor is called
and the if condition candidate instanceof Date holds true
=> it execute the if branch
where we have DateUtil.truncateToSeconds((Date) candidate)
in the DateUtil class
truncateToSeconds(Date date) {
Instant instant = date.toInstant().truncatedTo(ChronoUnit.SECONDS);
return Date.from(instant);
so date.toInstant() is called
but in Time class toInstant method throws new UnsupportedOperationException();
so whenever we save Time we are getting this exception
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
TRUNK-5976 DropMillisecondsHibernateInterceptor throws java.lang.UnsupportedOperationException
-
- Closed
-