Configure MySQL with Grails

Oh Grails, you are the Holy Grail!…It makes developers life so easy and so much more pleasant. To configure MySql db with Grails application contains two simple steps: Pre-Condition: MySql Installed, Database(Schema) created Step 1 – Configure Connection In the /grails-app/conf/DataSource.groovy, update you appropriated environment as following example demonstrated for development env: … development { […]

Read more...

Groovy Snippets

This is ongoing blog where i plan to record groovy code snippets that convenient, useful and powerful Generating Long Strings Generating certain size string( used in testing to test sized string constraints) -or- Avoid Exception – MissingPropertyException There is null safe operator (?.) to avoid exceptions when calling methods on null object, however. If you call a property […]

Read more...

Java Gotchas

This is ongoing post where i hope to continue list different Java gotches 1. java.util.ConcurrentModificationException – Removing children from the parents’s collection while we’re iterating over it. As example we use groovy. In our example, we have RentalUnit object that contains colection of Reviews and Reviews contain collection of RentalUnit all in many-to-many relationship Error: […]

Read more...

Domain Object One-To-One Relationship In Grails GORM and SQL Relational Database

This is following post series about ‘Domain Object Relationships in Grails GORM and SQL Relational Databases‘ where we look at the details how the relationships are build in GORM with how physically structrured in DB while cascading and direction addressed. This post is divided into 4 section as following: Each section contains the following: Class […]

Read more...

Domain Object Relationships in Grails GORM And SQL Relational Databases

When doing re-factoring  for applications with SQL Databases, it may be helpful to know the details how GORM creates different relationships and how those relationships are physically structured in the DB. This post starts the post series to cover – One-To-One, One-To-Many, Many-To-Many and Inheritance for Domain objects relationships. we hope to answer following questions […]

Read more...