-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Could not parse mapping document from invalid mapping
PostPosted: Wed Apr 04, 2007 2:07 am 
Newbie

Joined: Wed Apr 04, 2007 2:03 am
Posts: 2
anyone ecountered this error? couldnt find any solution in google. i have usccessfully done the sample tutorial for hibernate. my problem is when i integrate it with spring

i cant understand why it cant map it successfully. it's even only a simple table with 5 columns that are all strings.

ive already placed the necessary hiberante bean definitions in the spring-app.xml including sessionfactory, but to no avail

anyone got ideas? thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 2:16 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi chitgoks,

might be problem with hbm file.Check it in xml buddy or Exadel

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 11:17 pm 
Newbie

Joined: Wed Apr 04, 2007 2:03 am
Posts: 2
im trying to map now to a table with 2 columns. still no avail. this is my hbm file

<class name="com.crosscheck.web.Country" table="rbs_countries">
<id name="countryCode" column="countrycode" type="string" not-null="true"/>
<property name="description" column="description" type="string" not-null="true"/>
</class>

cant think why it gives me invalid mapping. just weird. countrycode is the primary key


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 11:25 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Send us complete hbm file

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 8:54 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Its invalid because you don't have a generator element on your id. I believe it is required. Use an XML syntax validator, that's why there's a dtd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.