Blog
Accessing Domain Constraints:Grails
31 Dec, 14

Accessing Domain Constraints:Grails

Constraints provide Grails with a declarative DSL for defining validation rules, schema generation and CRUD generation meta data. For example, consider these [code] class User { String username String password String email int age static constraints = { username size:...
Data Transfer Object(DTO) in grails
28 Dec, 14

Data Transfer Object(DTO) in grails

Data transfer object (DTO) is an object that carries data between processes. Working with a remote interface where each call to it is expensive. Response to each call should bring as much data as possible so if multiple request are required to bring data for a...
Groovy list: Get element from last
11 Dec, 14

Groovy list: Get element from last

Groovy has lots of awesome features which helps a lot in every day development, thanks @groovy. This blog demonstrate a cool feature of groovy list. Get element from last in a groovy list Lets have a list List list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] We can easily get...