"Could not write JSON: class java.util.ArrayList cannot be cast to class org.hibernate.mapping.List - Java Community | Help. Code. Learn.