1
是否可以使用公式加载实体?休眠:使用公式加载实体
例如:
@formula("(select * from myEntity ent where ent.isLatest = TRUE)")
publicmyEntity getmyEntity()
{
return this.associatedPatientJournalEntries;
}
如果是这样,如何映射一定要看。
另外,有什么替代使用公式来加载某些实体?