Hello ,
I am using EntityMode.DOM4J to persist XMLs directly without using a POJO in the hibernate mapping.Every thing works fine except, I can't get hibernate to generate tables with "hibernate.hbm2ddl.auto' when not using a POJO.
Here is what my .hbm looks like..
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping >
<class entity-name="Product"
table="product"
node="product">
<id name="id" type="string" column="id">
<generator class="native"/>
</id>
<property name="sku" node="@sku" column="sku" not-null="true" type="string"/>
<property name="description" node="description" column="description" not-null="true" type="string"/>
<property name="listPrice" node="list_price" column="list_price" type="string"/>
</class>
Any ideas ?
Thanks,
Chintaka