hibernate mappare roreign key riferite a stessa primary key
7 views
Skip to first unread message
cleaner
unread,
Oct 7, 2011, 6:44:55 PM10/7/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NHibernate-It
ciao a tutti, ho un problema sulla definizione di una foreign key in
nhibernate.. nello specifico ho una tabella squadre_tb con chiave
primaria "id_squadra" ed una tabella risultati_tb con chiavi esterne
"id_squadraA" e "id_squadraB" riferite a "id_squadra".
Come rappresento il tutto in nhibernate??
in particolare nel dominio come dovranno essere rappresentati i due
campi dato che condividono la stessa propietà della tabella
tb_squadre?
grazie!
FaticaLabs
unread,
Oct 10, 2011, 11:01:22 AM10/10/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NHibernate-It
supposto che chiamiamo Squadra la classe che mappa la teabella
squadre_tb