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
|