users@jaxb.java.net

Jaxb/hibernate with ManyToOne

From: kal stevens <kalstevens_at_gmail.com>
Date: Fri, 14 Dec 2007 14:00:42 -0800

If I have a hibernate mapping where a class has a ManyToOne bidirectional
relationship, how do I avoid an Infinite recursion?

Secondly is there an annotation so that I can marshall/unmarshall either
object to include the parent child relationship only once?


So if I have

class A {
    List<B> children
}
class B {
    A parent
}

Is it possible to un/marshal B and have give me A, which has it's children
set, or un/marshal A and have B's parent set?

Thanks

Kal