hello everyone,
I am learning hibernate 3 and I am stuck up with very first "hello world" program. I read many tutorials and I am building one sime application (hello world) but whenever I create hibernate mapping xml file (xxx.hbm.xml) or config file (hibernate.cfg.xml) I get error as "hibernate.sourceforge.net" at <class> tag.
I am using eclipse galliloe, Mysql 5.0 and hibernate 3.3.0 for building this application.
I think there is some problem in DTD of xml files.
Here is my mapping file :
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.3//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.3.dtd">
<hibernate-mapping>
<class name="hibernate.tutorial.Student" table="students">
<id name="studentId" column="student_id">
<generator class="increment"/>
</id>
Code:
<property name="firstName" column="first_name"/>
<property name="lastName" column="last_name"/>
<property name="address"/>
<set name="courses" table="student_courses">
<key column="student_id"/>
<many-to-many column="course_id"
class="hibernate.tutorial.Course"/>
</set>
</class>
</hibernate-mapping>
I have a student.java file in hibernate.tutorial package and in same package I have kept this student.hbm.xml file.
Eclipse shows that there is error in file near <class> tag. When I hover mouse over error icon, I see error message as "hibernate.sourceforge.net".
Does anyone knows what exactly is happening? Where Am I going wrong?
If you need any further details about my program, please tell me. I will tell you more details.
Regards,