title: AppFuse Save two new entities at once
body: <p>I'm trying to save 2 entities in AppFuse (Struts2, Hibernate and Spring) at once, 
  Here is an example (Address and person are new objects):</p>
  
  <pre><code>person.setAddress(address);
  personManager.save(person);
  </code></pre>
  
  <p>But this doesn't work, i get this exception:</p>
  
  <pre><code>object references an unsaved transient instance - save the transient
  instance before merge
  </code></pre>
  
  <p>I have to do:</p>
  
  <pre><code>addressManager.save(address);
  person.setAddress(address);
  personManager.save(person);
  </code></pre>
  
  <p>In person model i have declared Address like that:</p>
  
  <pre><code>@OneToMany(fetch = FetchType.LAZY, mappedBy = "person", cascade= CascadeType.ALL)
  public Address getAddress() {
      return this.address
  }
  </code></pre>
  
  <p>Are there any way to save this new entities at once?</p>
  
  <p>Thanks in advance..!</p>