I have posted this question in StakOverflow site, but I did not get an answer, so I am posting here, looking for an answer. I got all my entities annotated with @TypeDef which is actually trimming the String result from the database using a TrimClass. When I done the profiling I could find there are more than 1000 active objects in the memory and survived many garbage collection. I just need a singelton object here. since this is controlled by Hibernate I dont know how to fix this issue. please give a reply.
|