grails-3.3

Unable to start Grails 3.3.8 application with Postgres DB

限于喜欢 提交于 2020-01-06 03:26:08
问题 I started migrating my application from Grails 2.5.5 to Grails 3.3.8 running on Postgres DB but getting errors while starting the application in IntelliJ. Below are the details: Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method

grails 3.3 gorm where query with projection count() different than list().size()

与世无争的帅哥 提交于 2019-12-10 18:26:42
问题 According to the Gorm 6 documentation section 7.4 the Where Query returns a DetachedCriteria , which provides a method count() that is supposed to return the number of records returned by the query. In fact, as far as I can tell, if dc is an instance of DetachedCriteria , then dc.count() == dc.list().size() must hold true. In the case of a Where Query containing a projection, count() seems to return something else. In this simple example: query = Runner.where { projections { groupProperty