found the idea very cool. Thank you guys!
But I found it hard for me to understanf how to implement custom
"find" methods like for example - findAllEmployeesByName.
I looked all the documentations and it's written there that I can add
this method to Entity object itself like this:
@RooJavaBean
@RooToString
@RooEntity
public class Employee {
.....
@NotNull
private String displayName;
@SuppressWarnings("unchecked")
public static List<Employee> findAllEmployeesByName(String name){
return entityManager().createQuery("select ....... from Employee
o").getResultList();
}
}
I added it but nothing happend. No code generation started.
I see all finder methods are in Aspects which are generated by Roo
itself and I can't put my code there.
Can you guys give me some hint please.
With respect
Andrew Efremov
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment