Olá pessoal,
Estive fazendo o exemplo do guj sobre o hibernate, e quando meu servlet chama meu DAO, aparece o erro:
net.sf.hibernate.MappingException: Error reading resource: Amigo.hbm.xml
Meu Amigo.hbm.xml:
Código:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping.dtd">
<hibernate-mapping>
<class name="Amigo" table="amigos">
<id name="nome" column="nome" type="string">
<generator class="assigned"/>
</id>
<property name="endereco" type="string"/>
<property name="telefone" column="fone" type="string"/>
<property name="celular" column="cel" type="string"/>
<property name="email" type="string"/>
<property name="nascimento" type="date"/>
</class>
</hibernate-mapping>
Alguem sabe o que está errado?
Obrigado!