Mar 8th, 2011, 04:11 PM
Beginner question on toString for @ManyToOne
I just start using Roo with GWT and I have a very simple beginner question.
I have an entity Employee with a @ManyToOne field Employer, when the scaffold is created for Employee the views are showing the ID for Employer.
How do I set a toString or Converter in order to show the name of the Employeer ?
Mar 8th, 2011, 04:36 PM
Found the answer to my own question.
in the ~.client.managed.ui package there is a Renderer class for all the entity created by Roo in my case EmployeeProxyRenderer.java
Changing the render method of that class does the trick.