title: Join between View and table via JPA
body: <p>There is a table called <strong>asset</strong> and there is a view made of two table <strong>asset</strong> and <strong>assetprice</strong> called <strong>assetDetail</strong>.</p>
  
  <p>There is a one to one relation between <strong>asset</strong> and <strong>assetDetail</strong>.</p>
  
  <p>Asset Table fields are:{asset_id(pk),name,notes}</p>
  
  <p>AssetDetail view fields are: {asset_id,price,buy_date}</p>
  
  <pre><code>Public class Asset{
  
  ..
  @OneToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "asset_id")
  AssetDetail assetDetail;
  ...
  }
  
  Public class AssetDetail{
  
  ..
  @OneToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "asset_id")
  Asset asset;
  ...
  }
  </code></pre>
  
  <p>Please tell is this OK?</p>