[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-944?page=co...
]
Max Rydahl Andersen commented on HHH-944:
-----------------------------------------
if you already patched hibernate why don't you then attach the patch to this jira case
?
In one-to-many relationship (Set, Map, List), let <key> accept
<formula> as an alternative to <column>.
---------------------------------------------------------------------------------------------------------
Key: HHH-944
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-944
Project: Hibernate3
Type: New Feature
Versions: 3.1 rc3
Reporter: Etienne Laverdiere
As explain in
http://forum.hibernate.org/viewtopic.php?t=947249&highlight=&sid=...
and alternatively in
http://forum.hibernate.org/viewtopic.php?t=947145&highlight=&sid=...,
it would be nice if the <key> inside a SET or any collection (one-to-many
relationship) could accept a <formula> instead of the column:
Example:
<set name="childrens" lazy="true" inverse="true">
<key foreign-key="FinancialTransit">
<formula>ANY SQL</formula>
</key>
<one-to-many class="com.eg.Children" />
</set>
instead of :
<set name="childrens" lazy="true" inverse="true">
<key foreign-key="key1">
<column name="key2" scale="10"
precision="0" not-null="false" unique="true"
/>
</key>
<one-to-many class="com.eg.Children" />
</set>
It would necessitate to patch the class AbstractCollectionPersister and modify the DTD of
hibernate mapping.
Regards,
Etienne
--
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