title: How to map in Hibernate a qualified association?
body: <p>I tried to map this three classes:</p>
  
  <pre><code>@Entity
  class Photo {
  ...
  @ManyToOne
  private Map&lt;User, Coordinate&gt; labelledIn;
  ...
  }
  
  @Entity
  class User {
  ...
  @OneToMany (mappedBy ="labelledIn") 
  private Set&lt;Photo&gt; labelledPhotos;
  ...
  }
  
  @Embedded 
  class Coordinate { ... }
  </code></pre>
  
  <p>And I'm getting this error:</p>
  
  <pre><code>Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.redex.model.Photo.labelledIn references an unknown entity: java.util.Map
  </code></pre>
  
  <p>Can I map this qualified association in my database? If I can't, how can I do this in a different way?</p>