Hi,

I'm having a problem with a joined subclass mapping.

So I have a class named Transaction in my assembly Payments.
I have two class, OgonePayment and AllopassPayment that inherit from
Transaction (still in assembly Payments)

Now i have another class, UserSale that has a property of type
Transaction. This class is in assembly Sales


When the mapping is done, if the Sales assembly is mapped before the
Payments assembly then the mapper doesn't see the child of transaction
(OgonePayment and AllopassPayment) because the method
GetMappingTypesWithLogicalParents only looks for child within the
current assembly (Sales).

Then when the configuration is made the document of the Transaction
mapping without his subclass is added. And when the correct
Transaction with subclass is mapped, it's mapping document is not
added because there is already one that exists.

This is a problem for this case, but can be a problem also for child
that could be in another assembly.

I thought about using Automap.Assemblies but you can specify only one
Override Assembly and I need to use more than one.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to