What is Lazy Loading?

It’s called lazy loading because, like a lazy person, you are putting off doing something you don’t want to. The opposite is Eager Loading, where you load something right away, long before you need it. If you are curious why people might use lazy loading, consider an application that takes a LOOOOONG time to start. … Read more

Binding a Grails date from params in a controller

Grails Version >= 2.3 A setting in Config.groovy defines the date formats which will be used application-wide when binding params to a Date grails.databinding.dateFormats = [ ‘MMddyyyy’, ‘yyyy-MM-dd HH:mm:ss.S’, “yyyy-MM-dd’T’hh:mm:ss’Z'” ] The formats specified in grails.databinding.dateFormats will be attempted in the order in which they are included in the List. You can override these application-wide … Read more