02-13-2018 11:31 AM
I'm working with audit search. Using the AuditQueryBuilder
class. In the unit test environment, the following code...
Calendar cal = Calendar.getInstance();
AuditQueryBuilder builder = new AuditQueryBuilder().predicates(Predicates.gte("eventDate", cal.getTime()));
Framework.getService(AuditReader.class).queryLogs(builder);
...throws down in: org.hiberate.type.TimeStampType.toString()
with a ClassCastException
. The hibernate code is manipulating the Date instance from Nuxeo and then failing when it tries to map the parameter into a query. Does anyone know of a way around this for unit testing? Thanks
02-14-2018 05:02 AM
Hi,
It looks like hibernate version we use doesn't handle ZonedDateTime
, which is the type produced by Literals.valueOf
here.
Could you give us the stacktrace in order to create a jira issue ?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.