add "generated" attribute to <many-to-one> element
--------------------------------------------------
Key: HHH-2385
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2385
Project: Hibernate3
Type: New Feature
Components: core
Reporter: Dmitry
It would be nice to have "generated" attribute added to <many-to-one/>
element (similar to "generated" attribute of <property/>).
This would be very useful when there are lots of <many-to-one>s like the following:
<many-to-one
name="creatorEmpPosition"
update="false"
insert="false"
class="EmployeeOrganization">
<formula><![CDATA[
(select eo.ID from EMPLOYEE_ORGANIZATION eo where eo.EMPLOYEE_ID = CREATOR_EMP_ID
and eo.SDATE <= CREATE_DATE and (eo.EDATE is null or CREATE_DATE < eo.EDATE))
]]></formula>
</many-to-one>
Currently Hibernate doesn't support "generated" for <many-to-one>. So
developer has to manually refresh such objects after every insert/update.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira