-
Mar 8th, 2011, 04:11 PM
#1
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 ?
FraM
-
Mar 8th, 2011, 04:36 PM
#2
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.
FraM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules