1 <?xml version="1.0"?> 2 <!DOCTYPE hibernate-mapping PUBLIC 3 "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 4 "https://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> 5 <hibernate-mapping> 6 <class name="com.iqjava.employee.Employee" table="EMP"> 7 <meta attribute="class-description"> 8 This class contains the employee details. 9 </meta> 10 <id name="employeeId" type="long" column="EMP_ID"> 11 <generator class="native"/> 12 </id> 13 <property name="employeeName" type="string" column="EMP_NAME" not-null="true" /> 14 </class> 15 </hibernate-mapping>