Results 1 to 3 of 3

Thread: multiple entities within a controller

  1. #1

    Default multiple entities within a controller

    Hi all

    I have a table

    customer with some attributes

    Links to another table

    Activity

    with a fk linkinng them

    How do i create a controller for entering in data for both of these entities

    do i create two controllers then put both of them in another controller

    esentially i want to enter customer and activity data on one form but populate both tables.

    Please advise.

    Thanks for help!

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

    Default

    You could create a manual controller to do this. Just use the 'controller class' command. This creates a simple controller which you can then use as you wish. Alternatively you create a scaffolded controller for each of your entities, push-in the code from the aspects and then merge all code into one controller by hand. Of course you would also need to adjust your jsps accordingly.

    HTH,
    Stefan

  3. #3

    Default

    Thought as much... I had tried creating entities with the entities that i wanted within it.

    Cheers for help

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
  •