posted 12 years ago
hi buddy,
i am also facing the same problem .
The content of element type "class" is incomplete, it 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)*)".
could you also help me please.
i am trying to insert data into the table by using hibernate 3 in netbeans 7.
hibernate.cfg.xml file is created in default package with following code snippet
then i created the hibernate reveng xml file in default package
after it i created the hibernate mapping files(Emp.hbm.xml) and POJOS from database(Emp.java) in another package named NewPackage
/**************************************************************************************/
Emp.hbm.xml
/***************************************************************************************/
Emp.java
/**********************************************************************************/
after it i created hibernate.hbm.xml