-->
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: the one-to-many relationship
PostPosted: Thu Jan 22, 2004 2:48 pm 
Beginner
Beginner

Joined: Thu Jan 22, 2004 2:42 pm
Posts: 24
I am trying to set up a simple one-to-many relationship with hibernate and it errors out "ERROR impl.DatastoreImpl - Could not configure datastore from input stream"

I have narrowed it down to this section of the hbm.xml:

<set name="hcpcscodes" lazy="true">
<key column="HCPCS_BASE_ID"></key>
<one-to-many class="com.graysail.pgbadmecs.domain.HcpcsBaseDescription">
</one-to-many>
</set>

This mirrors the examples in the documentation with one key difference, mine doesn't work. Has anyone encountered this/fixed it before? I'm currently using hibernate 2.06.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 5:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Most likely this is something like a parser error or DTD violation. Can you see something in the logs like that? Have you tried using a recent Hibernate version?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 6:17 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
2.0beta6 ? You should upgrade at least to the 2.0.3 version (2.1.1 is better) and try

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 7:31 pm 
Beginner
Beginner

Joined: Thu Jan 22, 2004 2:42 pm
Posts: 24
I wish I could update to a newer version, but this is for a project already built on 2.06 so we can't really switch out versions now. I'll look into the possible DTD conundrum and post what I find.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 1:32 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Does the error occur at startup or only once you use the mapped object? How are you configuring your connection (pool). Please show your hibernate.cfg.xml file.


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.