Results 1 to 2 of 2

Thread: Zero to many relationships

  1. #1
    Join Date
    Sep 2010
    Posts
    13

    Default Zero to many relationships

    I have only been working with Roo/Spring/Hibernate for a short period of time, so please excuse me if this is a dumb question......

    I have been able to easily follow the examples for one-to-many and many-to-many relationships, but I have not been able to find any info on zero-to-many relationships and how those are done. Using one-to-many doesn't really work for my situation because then the UI requires the relationship to be in place to save the data when its really optional in my case.

    Thanks for any help you can provide.

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    This is currently not directly supported by Roo. Meaning, you will need to make some minor adjustments to your controllers and view artifacts. See https://jira.springsource.org/browse/ROO-581 which contains links for workarounds. For Roo to support this a small change in Spring Framework as tracked here https://jira.springsource.org/browse/SPR-7053.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •