Is it possible to load an entity using a Formula?
For example:
@formula("(select * from myEntity ent where ent.isLatest = TRUE )")
publicmyEntity getmyEntity()
{
return this.associatedPatientJournalEntries;
}
if so, how does the mapping have to look.
Also, what are alternatives to using formulas to load certain entities?
You can, but the formula looks:
Another alternatives are,