Thursday, December 19, 2013

Setting Default value of VO attribute using Groovy expression


Refer the blog http://suneesh-adf.blogspot.in/2013/12/setting-default-value-of-eo-attribute.html for the db design and BC objects.

Create the UserDetailVOImpl class and add the method :
              public String getHello() {
         return " Hello Suneesh";

    }

Provide the groovy expression to the default value of the transient attribute 
Run the BC tester and add new row.You can see "Hello Suneesh" defaulted.

1 comment: