mapping class attributes to other (same attributes) class
<p>I have 2 classes with exactly the same named attributes (1 business class, and 1 data class).</p>

<p>At this moment i've written a 'convert' method that maps all the attributes van 1 class to the other: </p>

<pre><code>private class BusinessLogic convert(Datalogic dataclass)
{
    Businesslogic businessclass = new BusinessLogic();
    businessclass.ID = dataclass.ID;
    businessclass.name = dataclass.name;
    .....
    return businessclass;
}
</code></pre>

<p>It seems to be that there must be a far more simpler way. I'm only not sure how to search for it. Can someone put me on the right track. </p>
