title: Generating Hibernate POJO classes
body: <p>I am generating hibernate pojo classes with annotations from existing tables using <strong>Ant Script</strong>.
  I am stuck with a problem. Problem is that I am having two classes Person and Address. There is OneToMany mapping between these two classes.</p>
  
  <p>Generated classes contains :</p>
  
  <pre><code>//Person.java
  @OneToMany(fetch=FetchType.LAZY)
  public Set&lt;Address&gt; getAddresses()
  {
      return addresses;
  }
  public void setAddresses(Set&lt;Address&gt; addresses)
  {
      this.addresses=addresses;
  }
  
  //Address.java
  @OneToMany(fetch=FetchType.LAZY)
  public Person getPerson()
  {
       return person;
  }
  public void setPerson(Person person)
  {
       this.person=person;
  }
  </code></pre>
  
  <p>I am having a situation where I don't want to generate the set of addresses. Is there any way to generate the POJOs without set. i.e. to avoid the reverse mapping.
  Please help. Thanks in advance.</p>