Results 1 to 3 of 3

Thread: Data mapping

  1. #1

    Default Data mapping

    I have modified roo generated code to write to two entities when persisting rather than the 1-1 relationship.

    Now i need to when the user selects create i need to be able to via an id query db for a given value and pre-populate the form with the data from the database.

    I'm looking in createfrom method in roo_controller.aj like pass it a an object some how to add the data into the values.

    A good way of doing so would be lovely!

    Thanks

    Joe

  2. #2

    Default

    Have found that you can simply addAttribute then populated object and its there works a treat!

    Problem solved!

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

    Default

    Good to hear you worked it out. Let us know if we can improve documentation or anything for future reference.

    -Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Tags for this Thread

Posting Permissions

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