Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database-object element giving error in hbm

 
Prashant Mak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Experts,
I am getting error when i am placing database-object element inside the hbm.

My hbm is

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="com.packageOne.dto">
<class name="Join1" table="Join1">
<id name="id" column="ID">
<generator class="increment"></generator>
</id>

<property name="name" column="NAME" />

<property name="address" column="ADDRESS"/>

</class>



<database-object>
<create>create index MY_INDEX on MY_TABLE (COLUMN_NAME)</create>
<drop></drop>
</database-object>
</hibernate-mapping>

The error is as follows

The content of element type "hibernate-mapping" must match "(meta*,typedef*,import*,(class|
subclass|joined-subclass|union-subclass)*,(query|sql-query)*,filter-def*)".

Please help.

Thanks
 
Prashant Mak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone please help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic