Implementing ternary relationship in Hibernate
<p>I have four tables.entities,</p>

<ol>
<li>User</li>
<li>Project</li>
<li>Role </li>
<li>UserProjectRole</li>
</ol>

<p>My scenario or relation is, In one project, one user has many roles.
I am confused to map relationships in above hibernate entities.
Need some help.</p>

<p>Thanks in advance.</p>