title: Is correct to use @OneToMany with @OneToOne?
body: <p>I have a class <code>Portfolio</code> where the debts that the debtors have with different banks are kept. Therefore, a portfolio has a list of <code>Debt</code> objects and the annotation is <code>@OneToMany</code>.</p>
  
  <p>This is <code>Portfolio</code>:
      </p>
  
  <pre><code>@Entity
  public class Portfolio extends PersistentEntity {
      @OneToMany
      private List&lt;Debt&gt; debts;
  
      /* Getters and setters */
  }
  </code></pre>
  
  <p>And the class <code>Debt</code>:</p>
  
  <pre><code>@Entity
  public class Debt extends PersistentEntity {
      @OneToOne
      private Portfolio portfolio;
  
      /* Getters and setters */
  }
  </code></pre>
  
  <p>My question is what annotation to use in the <code>Debt</code> class. I understand it is <code>@OneToOne</code> because a debt belongs to a particular portfolio, but I was advised to use <code>@ManyToOne</code>. What I understand from this annotation is that a debt can be referenced by different portfolios. Is this correct?</p>