|
From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-22 19:58:42
|
[ http://216.121.112.228/browse/NH-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Maulo closed NH-2665.
---------------------------
Resolution: Not an Issue
You can map the formula per each expected parts of the compisite-id.
<many-to-one name="Blah">
<formula>formula for the first element of the id</formula>
<formula>formula for the second element of the id</formula>
</many-to-one>
> Formula on Many-to-one pointing to a composite-keyed entity don't work
> ----------------------------------------------------------------------
>
> Key: NH-2665
> URL: http://216.121.112.228/browse/NH-2665
> Project: NHibernate
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.2.0Alpha2
> Reporter: Onur Gumus
> Priority: Major
>
> Hello, it seems the following mapping won't work
> <many-to-one formula="(select top 1 id1, id2 from SomeEntity")/>
> in this case id1 and id2 are composite Id's for SomeEntity. NHibernate will complain it was expecting two columns while validating the mapping.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|