Estoy teniendo ese error, en algunos mapeos, segun me dice el log.
 
lo raro es que tengo referenciando ese assembly...
la interface iEntity, solo me hace implementar una propiedad (IsNew), pero no esta mapeada esa propiedad.
 
version de nhibernate 1.0.1.0
 
tambien copio la clase y el mapeo saludos.
 
2006-03-23 09:12:00,406 [3416] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] - Compiled with error:
using System;
using NHibernate.Property;
namespace NHibernate.Persister {
public class GetSetHelper_survey_Core_Domain_TiposEncuesta : IGetSetHelper {
  ISetter[] setters;
  IGetter[] getters;
  public GetSetHelper_survey_Core_Domain_TiposEncuesta(ISetter[] setters, IGetter[] getters) {
    this.setters = setters;
    this.getters = getters;
  }
public void SetPropertyValues(object obj, object[] values) {
  survey.Core.Domain.TiposEncuesta t = (survey.Core.Domain.TiposEncuesta)obj;
  t.Encuestas = (Iesi.Collections.ISet)values[0];
  t.Nombre = (System.String)values[1];
  t.Codigo = (System.String)values[2];
}
public object[] GetPropertyValues(object obj) {
  survey.Core.Domain.TiposEncuesta t = (survey.Core.Domain.TiposEncuesta)obj;
  object[] ret = new object[3];
  ret[0] = t.Encuestas;
  ret[1] = t.Nombre;
  ret[2] = t.Codigo;
  return ret;
}
}
}
 
2006-03-23 09:12:00,406 [3416] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] - Line:0, Column:0 Message:Referenced class 'survey.Core.Domain.TiposEncuesta' has base class or interface 'rdiFramework.Core.Util.IEntity' defined in an assembly that is not referenced.  You must add a reference to assembly 'rdiFramework.Core'.
 
 
------- clase

using Iesi.Collections;

using NHibernate.Mapping.Attributes;

using rdiFramework.Core.Util

namespace survey.Core.Domain

{

[Class(NameType = typeof (TiposEncuesta), Table = "ENC_TIPOS_ENCUESTA")]

public class TiposEncuesta : IEntity

{

#region ·· Variables ··

private long _tipoEncuestaId;

private string _codigo;

private string _nombre;

private ISet _encuestas = new SortedSet();

#endregion

#region ·· Properties ··

public bool IsNew

{

get { return _tipoEncuestaId == 0; }

}

[Id(0, Name ="TipoEncuestaId", Column = "TIPO_ENCUESTA_ID", TypeType = typeof (long), UnsavedValue = "0")]

[Generator(1, Class = "identity")]

public long TipoEncuestaId

{

get { return _tipoEncuestaId; }

set { _tipoEncuestaId = value; }

}

[Property(Name = "Codigo", Column = "CODIGO", TypeType = typeof (string))]

public string Codigo

{

get { return _codigo; }

set { _codigo = value; }

}

[Property(Name = "Nombre", Column = "NOMBRE", TypeType = typeof (string))]

public string Nombre

{

get { return _nombre; }

set { _nombre = value; }

}

[Set(0, Inverse = true, Name = "Encuestas", Table = "ENC_ENCUESTAS", Lazy = true, Cascade = CascadeStyle.SaveUpdate)]

[Key(1, Column = "TIPO_ENCUESTA_ID")]

[OneToMany(2, ClassType = typeof (Encuestas))]

public ISet Encuestas

{

get { return _encuestas; }

set { _encuestas = value; }

}

#endregion

#region ·· Constructor ··

public TiposEncuesta()

{

}

#endregion

}

}

 

------- mapeo

<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">

<class name="survey.Core.Domain.TiposEncuesta, survey.Core" table="ENC_TIPOS_ENCUESTA">

<id name="TipoEncuestaId" column="TIPO_ENCUESTA_ID" type="Int64" unsaved-value="0">

<generator class="identity" />

</id>

<property name="Codigo" type="String" column="CODIGO" />

<property name="Nombre" type="String" column="NOMBRE" />

<set name="Encuestas" table="ENC_ENCUESTAS" lazy="true" cascade="save-update" inverse="true">

<key column="TIPO_ENCUESTA_ID" />

<one-to-many class="survey.Core.Domain.Encuestas, survey.Core" />

</set>

</class>

</hibernate-mapping>

 

gracias!



    Ezequiel Jadib

*
[EMAIL PROTECTED]
* MSN: [EMAIL PROTECTED]

1 San Martin 617 P. 2 B
( (54-11)4893-1694
:
www.rdi2k.com


--~--~---------~--~----~------------~-------~--~----~
Para escribir al Grupo, hágalo a esta dirección: NHibernate-Hispano@googlegroups.com
Para más, visite: http://groups.google.com.ar/group/NHibernate-Hispano
-~----------~----~----~----~------~----~------~--~---

Responder a