Announcement Announcement Module
Collapse
No announcement yet.
Beginner question on toString for @ManyToOne Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment

    Working...
    X