JPA @ManyToOne, FetchType.LAZY and FetchMode.SELECT do not load original Parent object
<p>In my bi-direction JPA association between my Parent-child; I am trying to Lazy load my Parent from my Child Entity through a ManyToOne association.
<br>
While I debug, I do get the javaassist Proxy object(something like <code>Trade_$$_javaassist_41</code>) which is always a blank object. When I click the Proxy object, JPA does execute the select Query also, but ultimately, no binding happens with the original Parent Object(tradeBean).
<br>
Lazy loading the child entity from Parent(OneToMany) doesn't have such issues and child loads without fail.</p>

<p><strong>Parent Entity(Trade)</strong></p>

<pre><code>@OneToMany(mappedBy="tradeBean", fetch=FetchType.LAZY, cascade=CascadeType.ALL})
@Fetch(FetchMode.SELECT)
private Set&lt;Product&gt; products = new LinkedHashSet&lt;Product&gt;();
</code></pre>

<p><strong>Child Entity(Product)</strong></p>

<pre><code>@ManyToOne(fetch=FetchType.LAZY, targetEntity=Trade.class)
@JoinColumn(name="Trade", referencedColumnName="TradeID", insertable=false, updatable=false)
@Fetch(FetchMode.SELECT)
private Trade tradeBean;
</code></pre>

<p><strong>EntityManager Retrieval</strong></p>

<pre><code>EntityManager manager  = getEntityManager();
productObj = manager.find(Product.class, productPrimarykey);
if (productObj != null){
    productObj.getTradeBean().getTradeID();
}
manager.detach(productObj);         
return productObj;
</code></pre>

<p>Question <a href="https://stackoverflow.com/questions/8945365/jpa-hibernate-proxy-not-fetching-real-object-data-sets-all-properties-to-null">JPA/Hibernate proxy not fetching real object data, sets all properties to null</a> has the similar problem statement but there are no final members in my entities.</p>