External Issue
Details
Assignee
UnassignedUnassignedReporter
KévinLKévinLComponents
Affects versions
Priority
BlockerWho's Looking?
Open Who's Looking?
Details
Details
Assignee
Unassigned
UnassignedReporter
KévinL
KévinLComponents
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created July 1, 2010 at 5:59 AM
Updated September 10, 2010 at 1:11 AM
Resolved September 10, 2010 at 1:11 AM
Hello,
My problem is the following :
I have a bag of ZacAction class (which is a mother class for all action classes) :
[Bag(0, Inverse = true, Name = "Actions", Cascade = "save-update", Lazy = CollectionLazy.True, BatchSize = 2000)]
[Key(1, Column = "AlertId", OnDelete = OnDelete.Cascade)]
[OneToMany(2, Class = "CoreDomain.Alerts.Core.ZacAction")]
public virtual IList<ZacAction> Actions { get; set; }
The definition of one of the inheritors is :
[JoinedSubclass(Table = "ConsoleAction", Name = "CoreDomain.Alerts.Core.BuiltInActions.ZacConsoleAction",
Extends = "CoreDomain.Alerts.Core.ZacAction")]
public class ZacConsoleAction : ZacAction
{
[Key(0, Column = "Id", OnDelete = OnDelete.Cascade)]
[Property(1)]
public virtual string Message { get; set; } ...
Until there everything is OK, but if you derive ZacAction in another assembly then try to use the code, you obtain a =>
"instance not of expected entity type"
I tried without NHibernate.Mapping.Attributes, by writing my own xml config file, and the result is the same. I also tried to specify the assemblies everywhere with no better success.
Thx