[
https://issues.jboss.org/browse/FORGE-322?page=com.atlassian.jira.plugin....
]
Richard Kennard commented on FORGE-322:
---------------------------------------
Done in new scaffolding implementation. Well, sort of. I don't really grok what these
'finder' methods are all about. What if an entity has 3 fields? Do I need:
public Customer findByFirstname(...) { ... }
public Customer findBySurname(...) { ... }
public Customer findByAddress(...) { ... }
public Customer findByFirstnameAndSurname(...) { ... }
public Customer findByFirstnameAndSurnameAndAddress(...) { ... }
public Customer findBySurnameAndAddress(...) { ... }
public Customer findByFirstnameAndAddress(...) { ... }
This seems unwieldy in Java? It works in, say, Ruby because they have
'method_missing'. But I don't like the idea of statically generating all these
(when most will never be used).
So instead I've implemented a simple Query By Example into the scaffolding using
Criteria queries. Will that be sufficient?
Please test!
Support generation of @Entity "finder" methods
----------------------------------------------
Key: FORGE-322
URL:
https://issues.jboss.org/browse/FORGE-322
Project: Forge
Issue Type: Feature Request
Components: Scaffold
Affects Versions: 1.0.0.Beta2
Reporter: Lincoln Baxter III
Fix For: 1.0.0.Final
Support generation of "Finder" methods for entities
"findByNameAndAddress(String name, Address address)" and corresponding Finder
pages for the User interface.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira