I have a table "DOCS" for which I have entity and hib mapping XML. Now I want to add a derived field which represents access info for each record. For that reason I want Hibernate to populate the field by calling an oracle function. The native query looks something like the follows. select get_Access_perm(doc_id) accPerm, doc_name name, doc_type type from DOCS d where d.deleted != 'Y'
I am stuck at the hibernate mapping for the derived field. <property name="accPerm" type="java.lang.String"> ????? </property>
Is this possible in Hibernate?
|