File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate config issue" Watch "Hibernate config issue" New topic
Author

Hibernate config issue

Mr. Ashish Mathur
Greenhorn

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
/**************************************************************************************/
Emp.hbm.xml

/***************************************************************************************/
Emp.java


/**********************************************************************************/

after it i created hibernate.hbm.xml
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate config issue
 
Similar Threads
Hibernate exception for one-to-one mapping
delete option of cascade in Hibernate one-to-one association
problem in mapping hibernate class
onetomany - hibernateTemplate
problem with hibernate mapping