Hi Andreas,

I've tried the targetEntity but it doesn't solve the problem. What I've forgotten to mention
is that the class "WohnungNeu" extends the class "Objekt".

The used OneToOne relationship works perfectly.

I've found a startingpoint. It seems to be hibernate not tapestry...

Thanks for your help Andreas!

Marc

Andreas Bulling schrieb:
Hi Marc,

I'm using annotations so perhaps you have to take a look at the
hibernate documentation to see how to define the same in the xml
mapping file.
Perhaps you have to define something similar to this:
@ManyToMany(targetEntity = Person.class, mappedBy = "users", cascade = {
                        CascadeType.PERSIST, CascadeType.REMOVE })
        public List<Person> getPersons()
        {
                return persons;
        }

The important part is the "targetEntity" definition.

I hope this helps.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to