-->
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.  [ 1 post ] 
Author Message
 Post subject: Keep the referential integrity in Hibernate?
PostPosted: Thu Jul 20, 2006 11:55 am 
Newbie

Joined: Thu Jul 20, 2006 11:25 am
Posts: 1
I am really new to Hibernate. I need to do this:

I have two tables:

table questions:
ID, Answer, StudentId

Table student:

ID, Name, Email.

Page flow is like this:

Page1: question form-- click continue---Page2: student info form--submit.

I have made the mapping for two classes: questions and student.

How can I make sure the same "StudentId" in questions table will be inserted in "ID" in student table(to keep the refrential integrity).

I am using struts/hibernate/oracle.

Can someone throw some light on this?

Thank you,

Richard


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

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.