PDA

View Full Version : what does it do??


javaant
Aug 10th, 2007, 05:08 AM
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<class name="org.appfuse.model.User" table="app_user">

<id name="id" column="id" unsaved-value="0">
<generator class="increment"/>
</id>
<property name="firstName" column="first_name" not-null="true"/>
<property name="lastName" column="last_name" not-null="true"/>

</class>
</hibernate-mapping>

will it create table named app_user...if yes where?
pls help me out

karldmoore
Aug 11th, 2007, 03:44 AM
It's nothing to do with Spring, it's a Hibernate mapping file. Have a look at the Hibernate manual.
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#tutorial-firstapp-mapping