HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > Some explanations on lazy loading > Comments > But this doesn't work with foreign keys!


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: But this doesn't work with foreign keys! 15 Jul 2004, 16:25
From: amezick Replies: 0, Views: 145
 
If I set the parent (who has an identity generated Id) to have a
constrained=true to a child (who has an foreign generated Id) I get an
error because hibernate tries to save the child before it gets the id
from the parent table.
 

Thread:
 But this doesn't work with foreign keys! 
 amezick   15 Jul 2004, 16:25 
      

coWiki