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

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: amezick (15 Jul 2004, 16:25) Replies: 0, Views: 38993
Subject: But this doesn't work with foreign keys!
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.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]