-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: EntityMode.DOM4J No Pojo can't generate tables
PostPosted: Tue Apr 22, 2008 12:21 pm 
Newbie

Joined: Tue Apr 22, 2008 12:08 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.