ManyToOne does not allow to set "unique"="true", "unique-key" and "index" for multi-column properties

Description

While expected mapping is perfectly valid

Mapping by code throws exception:

Multi-columns property can't be mapped through single-column API.
at NHibernate.Mapping.ByCode.Impl.ManyToOneMapper.Column(Action`1 columnMapper) in src\NHibernate\Mapping\ByCode\Impl\ManyToOneMapper.cs:line 154

Environment

None

Activity

Show:

Alex Zaytsev May 22, 2014 at 2:45 AM

Fixed in 54c80b4f0c230d2b1e2e1dde691816f81ae7c0dc

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created May 22, 2014 at 2:02 AM
Updated September 21, 2014 at 12:45 PM
Resolved May 22, 2014 at 2:45 AM
Who's Looking?