Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3
Name and version of the database you are using:
Mysql
I use one-to-many relationships a lot, the docs say that is a "rare" relationship and many-to-one is a more common unidirectional relationship. To me, I never could get the queries to run properly with a many-to-one relationship (for example with a where clause).
Am I following a bad practice.
Normally, I use the following structure:
<bag
name="terms"
lazy="false"
order-by="id"
cascade="all">
<key column="category_name"/>
<one-to-many
class="org.spirit.bean.impl.BotListPostImageMetadata" />
</bag>