title: Hibernate and Unexpected end of Subtree exception
body: <p>I'm a newbie to Hibernate.</p>
  
  <p>I have an <code>Item</code> POJO which contains a <code>Set&lt;String&gt;</code> consisting of labels. The labels are contained on another Database table from the <code>Item</code> table, so I do a join to populate the pojo.</p>
  
  <p>I'm trying to run a simple example query from the book "Java Persistance with Hibernate" where I query <code>from Item item where 'hello' member of item.labels</code>. Only, for some reason I am getting a </p>
  
  <pre><code> `org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree[from /*qualified class path*/.Item item where 'hello' member of item.labels]`
  </code></pre>
  
  <p>What might be causing this issue?</p>
  
  <p>Here are my POJOs:</p>
  
  <pre><code>public class Item
         private int uuid;
         private Set&lt;String&gt;labels = new HashSet&lt;String&gt;();
  
         @Id
         public int getUuid(){
            return uuid; 
         }
  
         @CollectionOfElements
         @JoinTable(name="labels", joinColumns=@JoinColumn(name="uuid"))
         @Column(name="label")
         public Set&lt;String&gt; getLabels(){
              return labels;
         }
   }
  </code></pre>