title: Hibernate annotation for complex table linkage
body: <p>I have the following linkage between several files. here are the models I created</p>
  
  <pre><code>PatMaster (the main object)
    private PatWorkflows patWorkflows;
    private PatActions patActions;
    private PatNextWorkflowStep patNextWorkflowStep;
  ...
  
  PatWorkflows (workflow chosen for a PatMaster record)
    String patWorkflowID 
  ...
  
  PatActions (current action associated with a PatMaster record)
    String patActionID 
  ...
  
  PatNextWorkflowStep (next actions possible based on the workflow chosen and the current action of a PatMaster record)
    String patWorkflowID
    String patActionID
  ...
  </code></pre>
  
  <p>I can't figure how the annotations would look like. Hopefully someone can share their expertise on this. Thank You in advance! </p>