Sort List In Groovy

If we have a simple list like List list = [4, 2, 9, 6, 7, 8, 2] We can easily sort this list using assert list.sort() == [2, 2, 4, 6, 7, 8, 9] or by using closure like assert list.sort { it } == [2, 2, 4, 6, 7, 8, 9] Both gives us a list sorted in ascending order....

Dealing with LazyInitializationException

Hi Guys! I am back with a new Post titled “Dealing with LazyInitializationException”. In Hibernate “lazy initialization” is one of the key feature of Hibernate which allows it to lazily initialize associated properties of an object. For...

Accessing indirect properties using Criteria

Hi Guys! I am back with a new post titled “Accessing indirect properties using Criteria”. In Hibernate Criteria when we try to reference an indirect property of an object(A property that is part of another mapped object) then we get the following...

How to use Morris chart

Morris.js is the library, It’s a very simple API for drawing line, bar, area and donut charts.There I’m describing example of morris chart which is very simple How to use Morris Line chart: Morris.Line({ element: 'myfirstchart' data: [ { year: '2008',...

Remove Single Quote (‘) with Number Using Apache POI

I was using excel-export:0.2.1 plug-in for export data in grail,it was work properly but facing some problem whenever I was Exporting String type of data that was work properly but whenever I was using number(Date and Time),its also work properly but append the single...