The point is that as it is presented in
http://docs.jboss.org/hibernate/core/3. ... asses.html with the example:
<class entity-name="Customer">
<id name="id"
type="long"
column="ID">
<generator class="sequence"/>
</id>
<property name="name"
column="NAME"
type="string"/>
<property name="address"
column="ADDRESS"
type="string"/>
<many-to-one name="organization"
column="ORGANIZATION_ID"
class="Organization"/>
<bag name="orders"
inverse="true"
lazy="false"
cascade="all">
<key column="CUSTOMER_ID"/>
<one-to-many class="Order"/>
</bag>
</class>
would the class Organization have an attribute called organization? As I understand, with the "<bag" block, the Customer will have to have an orders attribute but ther is no Customar class?
Please, could somebody tell my if I am wrong?
Thank you very much in advance