-->
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.  [ 3 posts ] 
Author Message
 Post subject: foreign-key not set using many-to-one
PostPosted: Sat Dec 20, 2003 8:51 am 
Newbie

Joined: Sat Dec 20, 2003 7:30 am
Posts: 2
Hello!

Before I start : I


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 4:48 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm pretty sure the sample does not add the
Code:
<property
name="fkCategory"
type="java.lang.Long"
column="fk_folder"
length="4"
/>

It's useless since you mapped it with the the many-to-one

there is not table attribute in you many-to-one mapping. I don't know what your talking about.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 6:03 am 
Newbie

Joined: Sat Dec 20, 2003 7:30 am
Posts: 2
very thanks for the prompt answer.

Next time it would be better to read
the errormsg more carefully!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.