title: There are a @Formula-like annotation to set calculated field from subquery in JPA (EclipseLink)?
body: <p>I am a very new JPA user.</p>
  
  <p>I want to know how to set a field based on a calculated subquery value, something like:</p>
  
  <pre><code>@[Annotation]("select count(*) from ...") 
  long calculatedField;
  </code></pre>
  
  <p>Is that posible?</p>
  
  <p>Thanks in advance.</p>