После обновления я получаю это предупреждение в своих журналах:
Код: Выделить всё
org.hibernate.orm.deprecation - HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead
Код: Выделить всё
def list = Toto.createCriteria().list {
eq('exemple', XXX)
}
Код: Выделить всё
def listScrollable = Toto.createCriteria().scroll {
eq('exemple', XXX)
}
while (listScrollable.next()) {
Toto toto = listScrollable.get(0)
}
Код: Выделить всё
def list = Toto.where {
exemple == XXX
}.list()
Если я попробую:
Код: Выделить всё
def listScrollable = Toto.where {
exemple == XXX
}.scroll()
Код: Выделить всё
No signature of method: org.grails.datastore.gorm.query.criteria.AbstractDetachedCriteria.scroll() is applicable for argument types: () values: []
Подробнее здесь: https://stackoverflow.com/questions/798 ... and-scroll
Мобильная версия