Hi,
I am new to Hibernate Annotations and trying to annotation the following mapping.
Code:
<set table="child_table" lazy="false" name="tablename1">
<key column="parentid" not-null="false"/>
<one-to-many class="classname"/>
<filter condition="filtercondition" name="filtername"/>
</set>
Please help me on how to annotate a Unidirectional set based OneToMany Association.
Code:
@CollectionOfElements(fetch=FetchType.EAGER,targetElement = classname.class)
@FilterJoinTable()
Quote:
If I dont use @JoinTable, Iam getting the error as :Invalid Object Name parent_table_child_table
Is it necessary to use @JoinTable along with this unidirectional onetomany association? If so, how will I map the table and the Columns?
Thanks,
Babloo