How to enable validation against schema with Jaxb2Marshaller? Wiht example below If DateTime tag is wrong(should be with T "2015-09-09T16:56:39"), I don't get exception, the unmarshaller just return model with null.
schema: <xs:element name="ExecutionTime" minOccurs="0" maxOccurs="1"
type="xs:dateTime" />
tag example <ExecutionTime>2015-09-09 16:56:39</ExecutionTime>
Jaxb2Marshaller marshaller = null;
marshaller = new Jaxb2Marshaller();
marshaller.setContextPath(contextPath);
ClassPathResource schemaResource = new ClassPathResource(classpathXSD);
marshaller.setSchema(schemaResource);
marshaller.setMappedClass(Entity.class);
marshaller.unmarshal(stringSource)