I have a class hierarchy mapped with the retirements. Janine in Hibernate (3.5.6 Final) with JAP 2.0 -
@ Entry @ Inheritance (strategy = inheritance type. Jind) Public abstract class A {Private Long ID; @OneToOne @JoinColumn (name = "foo_id", nullable = false) Private Fu Foo; ...} @ Entity @ Pririke Join column (name = "BIID") Public category B {...} @ Entity @ Prireakeke join column (name = "CIID") Public category C {...} and Foo unit - @Entity Public Square Fu {@ Private Private ID ID; @OneToOne (cascade = CascadeType.ALL, mapped = "foo") left private // a // getters / setters}
Comments
Post a Comment