Asegurate que tienes el  mntdepartment.hbm.xml como recurso embebido...

2012/2/3 Tomas <[email protected]>

> Hola a tod@s.
>
> Recurro ante uds haber si me pueden ayudar porque llevo todo el dia
> con este error y no se porque me lo da.
>
>
> Fichero clase
>
> mntusers.cs
>
>
>        public virtual string id { get; set; }
>
>        public virtual string name{ get; set; }
>        public virtual int operationsSpending { get; set; }
>        public virtual string pc { get; set; }
>        public virtual int correctInput { get; set; }
>        public virtual int incorrectInput { get; set; }
>        public virtual DateTime lastDateInput { get; set; }
>        public virtual string bussines { get; set; }
>
>        public virtual string accounting { get; set; }
>        public virtual mntdepartment department { get; set; }
>
> mntdepartment .cs
>
>        public virtual  int id { get; set; }
>        public virtual string description { get; set; }
>
> ficheros hbm
>
> mntusers.hbm.xml
>
> <?xml version="1.0" encoding="utf-8" ?>
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
> assembly="PigCsharp" namespace="PigCsharp.Entities">
>
>        <class name="mntusers">
>                <id name="id" type="String">
>                        <column name="users" />
>                        <!--generator class="native" /-->
>                </id>
>                <!--property name="users" type="String" not-null="true"/-->
>
>                <property name="name" type="String" not-null="true"/>
>                <property name="operationsSpending" type="int"
> not-null="true"/>
>                <property name="pc" type="String" not-null="true"/>
>                <property name="correctInput" type="int" not-null="true"/>
>                <property name="incorrectInput" type="int" not-null="true"/>
>                <property name="lastDateInput" type="date" not-null="true"/>
>                <property name="bussines" type="String" not-null="true"/>
>
>                <many-to-one name="department"
>                                         class="mntdepartment"
>                                         column="departmentId"
>                                         cascade="all"/>
>
>
>                <property name="accounting" type="String" not-null="true"/>
>
>        </class>
> </hibernate-mapping>
>
>
> mntdepartment.hbm.xml
>
> <?xml version="1.0" encoding="utf-8" ?>
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
> assembly="PigCsharp" namespace="PigCsharp.Entities">
>        <class name="mntdepartment">
>                <id name="id" column ="mntdepartmentId" type="int">
>                        <generator class="native"/>
>                </id>
>                <property name="description" type="String" not-null="true"/>
>        </class>
> </hibernate-mapping>
>
> Saludos y muchas gracias
>
> --
> Para escribir al Grupo, hágalo a esta dirección:
> [email protected]
> Para más, visite: http://groups.google.com/group/NHibernate-Hispano

-- 
Para escribir al Grupo, hágalo a esta dirección: 
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano

Responder a