jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Hibernate config issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate config issue" Watch "Hibernate config issue" New topic

Hibernate config issue

Mr. Ashish Mathur

Joined: Jan 24, 2012
Posts: 2
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



after it i created hibernate.hbm.xml
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

Use "column" as an attribute of the tag not as a child element of the mapping.

[How to ask questions] [Twitter]
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate config issue
jQuery in Action, 3rd edition