Setting the value of a domain class defined in differen domain
<p>I have two domain classes (getter setter of two tables): <code>Contact Information</code> and <code>Address</code>.
I have some fields in Contact Information and some fields in Address.</p>

<p>I'm setting the values of the contact information in the controller class but I need to set the values of fields in Address class via Contact Information.</p>

<p>Code:</p>

<pre><code>class ContactInformation {

String id;
String name;

Address address;

//getter and setters

}
</code></pre>

<p>And</p>

<pre><code>Class Address{

String idAddress;
...
...
//getter and setter

}
</code></pre>

<p>In Controller class</p>

<p>I am setting the values like</p>

<pre><code>contactInformation.setId("some value");
</code></pre>

<p>How do i set the value of idAddress via ContactInformation?</p>
