Announcement Announcement Module
Collapse
No announcement yet.
multiple entities within a controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Cheers for help

      Comment

      Working...
      X