Announcement Announcement Module
Collapse
No announcement yet.
This relationship is managed from <children> side Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • This relationship is managed from <children> side

    I have two entities User and Tasks. I have one-to-many relationship from User side and also many-to-one relationship from Tasks side. This is as per Roo's recommendation in docs at http://static.springsource.org/sprin.../base-web.html (end of the document ).

    Inspite having done all what is recommended, it still shows the message "The relationship is managed from other side". Here is code snippet from "one-to-many" side

    Code:
        @OneToMany(cascade = CascadeType.ALL, mappedBy = "duser_id")
        private Set<Task> tasks = new HashSet<Task>();
    From many-to-one side,

    Code:
        @ManyToOne
        private Duser duser_id;
    Everything works quite good from controllers/entities side. I also added <field:select> element in create.jspx side, but it does not save the references on back-end side.

    Additionally, is there anything I can do in the class ApplicationConversionService for this problem ?

    Thanks.
Working...
X