title: Hibernate @WhereJoinTable trouble
body: <p>I'm getting used to hibernate but every now and again I hit a stumble, here's another one.</p>
  
  <p>I'm trying to achieve the following:</p>
  
  <pre><code>@OneToMany
  @JoinTable(name = "inter_spec",
          joinColumns = { @JoinColumn(name = "inter_id") },
          inverseJoinColumns = { @JoinColumn(name = "spec_id") })
  @WhereJoinTable(clause = "spec_type=SECTION")
  public List&lt;Section&gt; getSections() {
      return sections;
  }
  </code></pre>
  
  <p>But I get the following error when running my unit test:</p>
  
  <blockquote>
    <p>[ERROR] JDBCExceptionReporter - Column "SECTIONS0_.SECTION" not found; SQL statement:</p>
  </blockquote>
  
  <p>All I want is to apply the Where clause so my List sections has only the SECTION type data.</p>
  
  <p>If I remove the Where clause my unit test passes, the assertion on the List has the expected data.</p>
  
  <p>Thanks for reading.</p>