-->
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: Automatically update columns if one column is changed?
PostPosted: Sat Aug 12, 2006 8:55 pm 
Newbie

Joined: Sat Aug 12, 2006 3:20 am
Posts: 4
Hi!

I'm trying to map the following legacy database tables using Hibernate. One notably requirement is that when the STUDENT.STUDENT_STATUS is changed, the SUBJECTA and SUBJECTB's STUDENT_STATUS are also changed because these columns are the same.

STUDENT
STUDENT_ID (PK)
STUDENT_STATUS

SUBJECTA
STUDENT_ID (PK)
STUDENT_STATUS

SUBJECTB
STUDENT_ID (PK)
STUDENT_STATUS

How can I map these tables that when STUDENT.STUDENT_STATUS (or even any of the three tables) is updated, the rest of the STUDENT_STATUS is updated automatically?
.


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.