Archiv der Kategorie: Groovy and Grails

Grails 1.4 canceled, next release version will be 2.0

Grails 1.4 should actually come after Grails 1.3. SpringSource recently decided to cancel 1.4 and name the next release 2.0. A lot of improvements and new features justify the new major version number. The changes of the upcoming 2.0 release … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit | Hinterlasse einen Kommentar

Groovy 1.8 released

Groovy 1.8 has been released. According to release notes following changes has been done: Performance improvements Closure enhancements (closures as annotation parameters, closure composition, …) native JSON support (JSONSlurper, JSONBuilder) a few new AST transformations (@Log, @ToString, @EquaslAndHashCode, …) GPars … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit | 1 Kommentar

Displaying Hibernate statistics in a Grails app

Hibernate offers a statistics object (org.hibernate.stat.Statistics) that can be used to monitor the behavior of Hibernate at runtime. Statistics include connection count, max query execution time, cache hits/misses and many more. To access the statistics, inject the sessionFactory into a … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , , , | 1 Kommentar

A Groovy way to retry method calls in case of exceptions

In some scenarios, method calls can fail – but would succeed when retrying the call after some seconds have passed. That is often the case with remote method calls, where the remote application could be temporarily unavaillable. I needed a … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , | 1 Kommentar

GroovyLint – Compile time checks for Groovy

GroovyLint is a library for Groovy that adds additional compile time checks. That makes sense as Groovy is a dynamically typed language and catches most of the errors at runtime, Java would catch at compile time. You know, the sooner … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , | Hinterlasse einen Kommentar

Mocking in Grails unit tests

Integration and functional tests in Grails are quite slow depending on the complexity of your code base. This results in slow continuous integration cyles. Pure unit tests are there for a better alternative most of the time. But mocking all the … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , , | 2 Kommentare

Different ways of using Liquibase in Grails

“You never develop code without version control, why do you develop your database without it? Liquibase is an open source, database-independent library for tracking, managing and applying database changes. It is built on a simple premise: All database changes are … Weiterlesen

Veröffentlicht unter Groovy and Grails, Java Persistence, Spring Universe | Verschlagwortet mit , , , ,