Roo - add custom search

I used Roo to create a project that uses an existing database. Im able to create dynamic crawlers, but I want to implement a custom search that will receive 4 parameters and use some of them to create Like conditions and others for the equality condition.

What is the best way to do this with Roo.

+4
source share
2 answers

The recommended template is to edit the source .java file for your entity and define a new crawler there. You might want to create a dynamic crawler and then copy the style from the corresponding entityname_Roo_Finder.aj file. Please note that manually created creators do not appear in automatically created web scaffolds (whereas dynamic search devices will be).

+9
source

You will probably have to copy entityManager() -Getter, as in:

 new DomainClass().entityManager; 
0
source

All Articles