Creating custom finders or something like that.
Hi guys.
I am creating custom finders which have return type other than javax.persistance.Query in my Roo project. (using roo commandline and editing in STS)
However, when I place this finders in xxx_finder.aj, and execute roo, roo manages xxx_finder.aj file and deletes what I've changed and creates its own finders again.
Where can I create my own finders safely? I mean we should access EntityName.entityManager() from outside. where is the appropriate place to do that.
For instance I may create a function to execute SQL COUNT(*) and I do not want to lose this method.
Thanks.