Hi, I have used Hibernate in the past,but for the first time I am creating a framework by my own. I am using Netbeans IDE.I have successfully connected to postgresql and my hibernate mapping file is like this
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="Student" table="Student"> <property name="roll_no" column="at_rollno"> </property> <property name="name" column="at_name"> </property> <property name="address" column="Address"> </property> </class>
</hibernate-mapping>
But while validating thsi XML I am getting an error like this The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*,resultset*,(query|sql-query)*)". [17]
Please help.Thanks in advance
|