-->
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: need help for mapping file!
PostPosted: Tue Oct 19, 2004 2:37 am 
Newbie

Joined: Fri Oct 15, 2004 9:47 am
Posts: 3
I am new to Hibernate and trying to understand how it works.
How should look the mapping file for this tables?

users_main{
user_id //assigned, Integer
user_name //String
user_email //string
}

tokens_data{
token_id //assigned, Integer
secret_a //Srtring
secret_b //String
}

token_user_mapping {
token_id //FK, integer
user_id //FK, integer
}

A have this relations between tables:
user_main AND token_user_maping ---> one-to-many
token_user_mapping AND tokens_data --> one-to-one


Any help would be appreciated.
10x in advance!

_________________
w.a.s.p


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.