Salut à tous,
j'utilise hibernate depuis peu et je me demande s'il y a un interet a utiliser l'association many-to-one ou many-to-many dans mon cas.

Voici mon schema, J'ai 2 types d'objet
vente et contact
il y a 2 type de contact : owner et billing

une vente est associé à un owner et à un billing
un owner/billing est associé à 0 à n vente

Le schéma le plus performant me parait etre celui-ci (en raisonnant BDD)
vente (id, name, price, ownerId, billingId, ...)
contact(id, firstName, ...)

la jointure est dans ce cas elementaire
select from vente
inner join contact as owner on vente.ownerId = owner.id
inner join contact as billing on vente.billingId = billing.id


En utilisant Hibernate, y a-t'il un interet a utiliser l'association many-to-one ou plutot many-to-many?