Using groovy for db obj type configuration