title: HQL JoinTable not accessible
body: <p>i have a many to many relationship between media and tags:</p>
  
  <p>Medium:</p>
  
  <pre><code>@ManyToMany(fetch=FetchType.EAGER)
  @IndexColumn(name="tags_index_column")
  @JoinTable(name="tag_map",
            joinColumns={@JoinColumn(name="tag_id")},
            inverseJoinColumns={@JoinColumn(name="item_id")})
  private List&lt;Tag&gt; tags;
  </code></pre>
  
  <p>Tags:</p>
  
  <pre><code>@ManyToMany(mappedBy="tags")
  @JoinTable(name="tag_map",
          joinColumns={@JoinColumn(name="item_id")},
                inverseJoinColumns={@JoinColumn(name="tag_id")})
  private List&lt;Medium&gt; media;
  </code></pre>
  
  <p>I try to query the join table from hql but i always get an exception:</p>
  
  <pre><code>String resultQueryString = "From tag_map"
  
          Query resultQuery SessionFactory.getCurrentSession().createQuery(resultQueryString);
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>org.springframework.orm.hibernate3.HibernateQueryException: tag_map is not mapped [From tag_map]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: tag_map is not mapped [From tag_map]
  </code></pre>
  
  <p>What i basically want to do is to query all media which has a tag with a specific id. Unfortunately i can't access the jointable. </p>
  
  <p>Any suggestions? :)</p>