| Hi Alfred Staflinger, I think the current behaviour is correct.
is a
@Entity
public class Event {
....
@Type(type = "org.hibernate.bugs.WrappedMessageUserType")
private WrappedMessage message;
....
}
So for
Query query = entityManager.createQuery("SELECT e FROM Event e WHERE e.message = :message");
query.setParameter("message", message);
the parameter should be a
not a
The fact a String value was accepted in previous versions, from 5.2.0 to 5.2.8, was due to an erroneous lack of validation. |