generating class from hibernate mapping file
Posted
by Mrityunjay
on Stack Overflow
See other posts from Stack Overflow
or by Mrityunjay
Published on 2010-06-08T12:31:54Z
Indexed on
2010/06/08
12:42 UTC
Read the original article
Hit count: 237
hi, i have one mapping file viz. student.hbm.xml.. i need to generate Student.java from the same. the file is below :-
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping>
<class name="org.hibernate.entity.ClassRoom" table="class_room">
<id name="roomId" column="room_id" type="int"/>
<property name="roomClass" column="room_class" type="string"/>
<property name="floor" column="floor" type="int"/>
<property name="roomMaster" column="room_mast" type="string"/>
</class>
</hibernate-mapping>
is there any way i can create the class file from the above file.please help...
© Stack Overflow or respective owner