Skip to content

NH-3127 - One-to-one loquacious configuration missing Class() #1275

Closed
@nhibernate-bot

Description

@nhibernate-bot

Stephen Kou created an issue — 23rd April 2012, 18:14:40:

The loquacious configuration API has a Class(Type entityType) method for many-to-one, and one-to-many associations. However, when trying to specify a one-to-one mapping, the IOneToOneMapper interface has no Class() method where I can specify the entity type of the One-to-One field. This makes it impossible to map one-to-one properties which are typed as interfaces or an abstract base class.

The documentation (http://nhibernate.info/doc/nh/en/index.html#mapping-declaration-onetoone) shows that the XML <one-to-one> element has a "Class" attribute through which this can be specifies, so I gather it was an oversight when designing the IOneToOneMapper interface.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions