Created
October 4, 2013 14:39
-
-
Save sourabh86/6827022 to your computer and use it in GitHub Desktop.
Employee hibernate mapping for hibernate 4 example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?><!DOCTYPE hibernate-mapping PUBLIC | |
"-//Hibernate/Hibernate Mapping DTD 3.0//EN" | |
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | |
<hibernate-mapping package="com.cc.example.hibernate"> | |
<class name="com.cc.example.hibernate.Employee" table="EMPLOYEE"> | |
<id name="id" type="long" column="ID" length="20"> | |
<generator class="assigned"/> | |
</id> | |
<property name="firstName" column="FIRSTNAME" type="string" length="20"> | |
</property> | |
<property name="lastName" column="LASTNAME" type="string" length="20"> | |
</property> | |
<property name="email" column="EMAIL" type="string" length="50"> | |
</property> | |
</class> | |
</hibernate-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment