Difference between findAll, getAll and list in Grails

getAll is an enhanced version of get that takes multiple ids and returns a List of instances. The list size will be the same as the number of provided ids; any misses will result in a null at that slot. See http://grails.org/doc/latest/ref/Domain%20Classes/getAll.html findAll lets you use HQL queries and supports pagination, but they’re not limited … Read more

Found shared references to a collection org.hibernate.HibernateException

Hibernate shows this error when you attempt to persist more than one entity instance sharing the same collection reference (i.e. the collection identity in contrast with collection equality). Note that it means the same collection, not collection element – in other words relatedPersons on both person and anotherPerson must be the same. Perhaps you’re resetting … Read more