-->
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: Mapping Hibernate Data - Foreigh key as index
PostPosted: Fri Feb 18, 2005 1:26 pm 
Newbie

Joined: Fri Feb 18, 2005 1:10 pm
Posts: 1
Hi,

I need a little help with a table mapping. I have the situation below.

TABLE_A
ID_TABLE_A

TABLE_B
ID_TABLE_B

TABLE_C
ID_TABLE_A ( FK ) index 1 - unique
ID_TABLE_B ( FK ) index 1 - unique
VL_ANY_VALUE_IN_TABLE double

The columns ID_TABLE_A and ID_TABLE_B will be foreign keys with constraints on the table C, and together they are a unique index on the table.

The table C will have another column with any type of value.

My doubt is, how to map this TABLE_C, with this 2 foreign keys as unique index and with another column to input value.

I really need some help here... This problem is getting serious to me.

Thanks in Advance,

San


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.