[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-944) In one-to-many relationship (Set, Map, List), let <key> accept <formula> as an alternative to <column>.
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Thu Sep 7 15:25:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-944?page=comments#action_24364 ]
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=c6df51fcf4a97edac80b76c317c51852 and alternatively in http://forum.hibernate.org/viewtopic.php?t=947145&highlight=&sid=c6df51fcf4a97edac80b76c317c51852, 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.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list