• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate config issue

 
Mr. Ashish Mathur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use "column" as an attribute of the tag not as a child element of the mapping.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic