Announcement Announcement Module
Collapse
No announcement yet.
addon-dbre and toString loop in @OneToOne Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • addon-dbre and toString loop in @OneToOne

    JIRA Ref: https://jira.springframework.org/browse/ROO-1399

  • #2
    In ROO-1253, I added the ability to exclude fields in the @RooToString annotation. Would you please try this with your classes to see if it fixes the issue and report back? I can then change the DBRE code to add these exclusions automatically.
    Thanks
    Alan

    Comment


    • #3
      yeah, adding manually "ignoreFields" to the reverse side of the relation solves the problem.

      Code:
      @Entity
      @RooToString(ignoreFields={"refA"})
      ...
      public class B {
      }
      Would be nice for DBRE to be smart enough to generate appropriate "ignoreFields" automatically.

      Comment


      • #4
        I'll see what I can do!

        Can you please confirm if it applies just to one-to-one mappings? It will take more time if I have to do the research. Thanks

        Comment


        • #5
          DbreMetadata has been changed to generate 'excludeFields' in @RooToString for one-to-one fields on one side.

          Do a complete build of Roo first as the @RooToString annotation has changed as well.
          Alan
          Last edited by Alan Stewart; Sep 16th, 2010, 07:09 AM.

          Comment


          • #6
            works. sweet.

            Comment

            Working...
            X