The classes are approximately:
partial partial class BaseNameType{ public FirstName; public
LastName; }
public partial class NameOfRecordType : BaseNameType {public
NameOfRecordTypeType Type; }
public partial class StudentPersonalType { public public partial
class StudentPersonalType Name; }
I map it thus:
<property name="Name"
type="AssemblyName.Services.BaseDataObjects.NameOfRecordType,
AssemblyName">
<column name="Type"/>
<column name="LastName"/>
<column name="FirstName"/>
</property>
Now that I am an expert on generating schema from my NH mapping, I am
able to look at what NH thinks it is doing. In this case, it Bombs and
tells me it cannot determine the type of LastName. When I remove the
names, it generates a schema. Especially, it generates the Type
column.
As far as I can figure, this should work. Any thoughts?
tqii
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
LOL
Sorry if it was irritating to you.
tqii
On Mar 10, 5:08 pm, Fabio Maulo <fabioma...@gmail.com> wrote:
> " I am an expert on generating schema from my NH mapping"
> well...
> When you put something in the attribute "type" of the node <porperty> you
> should put a IType implementation or a IUserType implementation (that is not
> your case).
>
> In you case what you need seems a <component> and not a IUserType.
>
> 2010/3/10 tqwhite <tqwh...@gmail.com>
> > nhusers+u...@googlegroups.com<nhusers%2Bunsu...@googlegroups.com >
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.