| 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: 3563
|
|
|
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]
|
 |
 |
|
|
subject: Hibernate config issue
|
|
|