Pages
(Move to ...)
Home
Java
Android
Php
Cake PHP
jQuery
Grails
All Pages
▼
Monday, May 5, 2014
Setting default value for fields in Grails Domain Class
›
class MyDomainClass { Date myDate = new Date (); Boolean myBoolean = false ; String myString = "" ; ...
Convert Map, HashMap or List/ArrayList to XML and reverse
›
HashMapToStringXml.java package pritom ; import java.beans.XMLDecoder ; import java.beans.XMLEncoder ; import java.io.ByteArra...
Logging Hibernate SQL in Grails With Parameters
›
Add the following line to DataSource.groovy marked yellow dataSource { pooled = true url = jdbc : mysql : //localhost/data...
Saturday, May 3, 2014
Annotating Custom Types in Hibernate
›
Two new classes are needed. The first is the class you want to use for the column. In my case, I created a class Phone to store data in d...
Hibernate Interceptor Example
›
In order to use an Interceptor with our Session , we need to create a class that extends EmptyInterceptor . . C reate a new class with ...
‹
›
Home
View web version