Assume simple entity with cName field declared as java.lang.Character and now you want to do the query
it gives you the exception java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: The assignment expression type [java.lang.String] did not match the assignment path type [java.lang.Character] for the path [c.cName] [UPDATE EntityC c SET c.cName='J'] |