How do you set the value from children list to parent list
<p>Inheritance in Java. Is it possible to do like this: </p>

<pre><code>List&lt;ParentEntity&gt; loc = Locations, 
</code></pre>

<p>where <code>Locations</code> is <code>List&lt;ChildEntity&gt;</code></p>
