ComponentAsId not allow setting ID column name

Description

NHibernate.HibernateException : The class has no identifier property.

The "name" attribute is missed in generated xml-mapping:
<composite-id class="SomeClass">
.
.
</composite-id>

Also:
ComponentAsId(id => id.ID, idm=>
{
idm.Column("MyID") // <-- missing method
});

Environment

None

Activity

Show:

Oskar Berggren November 14, 2012 at 12:01 PM

Mass-closing issues resolved with no fix-version and untouched for 30 days.

Oskar Berggren January 7, 2012 at 8:43 PM

The missing "name" attribute was recently fixed in NH-2989.

The Column() method shouldn't be there for ComponentAsId(), since there are multiple columns involved. Set this for each property in the component instead.

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created December 26, 2011 at 6:49 AM
Updated May 22, 2014 at 1:28 AM
Resolved May 22, 2014 at 1:28 AM
Who's Looking?