title: @OrderBy Annotation in Hibernate Not Working
body: <pre><code>    import org.hibernate.annotations.OrderBy;   
      import javax.persistence.Column;
      import javax.persistence.Entity;
  
       public class A implements Serializable 
          {
              @Id
              @Column(name="SNR")
              private long ASnr;
  
              @OneToMany(fetch=FetchType.EAGER)
              @JoinColumn(name="B")
              private Set&lt;B&gt; bset;
  
              public Set&lt;B&gt; getB() {
                  return this.bset;
              }
  
              @OrderBy(clause="bsnr DESC")
              public void setB(Set&lt;B&gt; bset) {
                  this.bset = bset;
              }
          }
  
          public class B implements Serializable 
          {
              @Id
              @Column(name="BSNR")
              private long bsnr;
  
               public long getBsnr() {
                  return this.bsnr;
              }
  
              public void setBsnr(long bsnr) {
                  this.bsnr= bsnr;
              }
          }
  </code></pre>
  
  <p>For above code <code>@OrderBy</code> is not working. When i try to make <code>hibernate</code> query then only select query is showing on console and there is no order by clause inside the sql query.  Have i left something or written incorrect ?</p>