E ai pessoal, estou com um problema ao tentar rodar um projeto com nhibernate só que está dando o seguinte erro.
" Model.Aluno.hbm.xml(6,4): XML validation error: The element 'class' in namespace
'urn:nhibernate-mapping-2.2' has invalid child element 'property' in namespace 'urn:nhibernate-mapping-2.2'.
List of possible elements expected: 'meta, jcs-cache, cache, id, composite-id' in namespace 'urn:nhibernate-mapping-2.2'. "
Já verifiquei o mapeamento e não vi nada de errado.
<?
xml
version="1.0"
encoding="utf-8"
?>
<
hibernate-mapping
xmlns="urn:nhibernate-mapping-2.2">
<
class
name="Model.Aluno,
Model"
table="aluno"
lazy="false">
<!--
could not find a primary key for this table/view.
NHibernate requires an 'id' element, so you'll have to define one manually.
-->
<
property
name="id"
column="Id"
type="short"/>
<
property
name="nome"
column="Nome"
type="String(50)"/>
<
property
name="cpf"
column="Cpf"
type="short"/>
</
class>
</hibernate-mapping>
Alguem poderia me ajudar.