What I was doing (in short) All types in only file named: types.xml (note it does not have "hbm") in the session-factory configuration <mapping assembly="Xyz" resource="Xyz.Types.xml" /> <mapping assembly="Xyz"/>
About a-b-c : do what you think is right On Tue, Oct 19, 2010 at 11:06 AM, Roger Kratz <[email protected]>wrote: > Hi > > > > I could have sworn it was possible to have a <typedef> declaration and the > usage of it in different mapping files. But… no. > > > > Like this > > > > File A > > <hibernate-mapping …> > > <class name=”Foo”> > > <property name=”Bar” type=”MyUserType”/> > > > > File B > > <hibernate-mapping ..> > > <typedef name=”MyUserType” class=”ass.type, ass”/> > > > > The above doesn’t work. “MyUserType” cannot be found. > > > > Is this… > > a) I remember wrong. This has never worked. You need to declare > typedef in same mapping file as where it’s used. > > b) I remember wrong. This has never worked. An improvement I should > put on Jira. > > c) A bug on trunk. I create a Jira issue for this. > > > > /Roger > > > > > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
