here is one way
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="BookstoreItem"
table="bookstore_item"
dynamic-update="false"
dynamic-insert="false"
>
<id
name="bookstoreId"
column="bookstore_id"
type="long"
>
<generator class="sequence">
<param name="sequence">bookstore_id_seq</param>
</generator>
</id>
<property
name="PLU"
type="java.lang.String"
update="true"
insert="true"
column="PLU"
length="300"
/>
<one-to-one
name="bookstore"
class="Bookstore"
cascade="none"
outer-join="auto"
constrained="false"
/>
<one-to-one
name="item"
class="Item"
cascade="none"
outer-join="auto"
constrained="false"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-ListAd.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>