I was not aware that the feature you try to use below existed...

/Oskar


2009/9/9 DF. thangld <[email protected]>:
>
> Hi!
>
> I have a mapping file
>
> <?xml version="1.0" encoding="utf-8"?>
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
>
>  <class name="beans.User, beans" table="users" lazy="true">
>    <cache usage="read-write"/>
>    <id name="ID" column="id" type="Int32">
>      <generator class="identity"/>
>    </id>
>
>    <property name="Username" column="username" length="200"
> type="String" not-null="true" unique="true"/>
>    <property name="Password" column="password" type="String" not-
> null="true" />
>    <property name="Birthdate" column="birthdate" type="date" not-
> null="false" />
>    <property name="Gender" column="sex" type="beans.Sex, beans" not-
> null="false" />
>    <property name="Yahoo" column="yahoo" type="string" length="50"
> not-null="false" />
>    <property name="Msn" column="msn" type="string" length="50" not-
> null="false" />
>    <property name="Skype" column="skype" type="string" length="50"
> not-null="false" />
>    <property name="Email" column="email" type="string" length="50"
> not-null="false" unique="true"/>
>    <property name="Description" column="description" type="string"
> not-null="false" lazy="true" />
>
>
>    <many-to-one name="Group" class="beans.Group, beans"
> column="group_id" not-null="false" fetch="join" cascade="none"
> lazy="proxy" not-found="ignore" />
>
>  </class>
>
> </hibernate-mapping>
>
> Everything work fine (and still fine). But I checked NH Profiler and
> the log say I still load Description on default (the column usually
> contain wall of text). How can I prevent that? Thanks for reading!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to