Results 1 to 2 of 2

Thread: Beginner question on toString for @ManyToOne

  1. #1
    Join Date
    Mar 2011
    Posts
    2

    Default 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. #2
    Join Date
    Mar 2011
    Posts
    2

    Default

    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
  •