Bom…
tenho a classe Logradouro a qual estão configuradas os getters e setters
sendo assim…
criei os xmls e o arquivo log4j
meu xmls de cadastro está assim
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Logradouro" table="logradouro">
<id name="id_logradouro" column="id_logradouro" type="int">
<generator class="increment" />
</id>
<property name="tp_logradouro" column="tp_logradouro" type="String"/>
<property name="nm_logradouro" column="nm_logradouro" type="String"/>
<property name="id_bairro" column="id_bairro" type="int"/>
</class>
</hibernate-mapping>
///////
meu xml de configuração está assim
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/cliente-db
</property>
<property name="connection.user">
teste
</property>
<property name="connection.password">
teste
</property>
<property name="hibernate.dialet">
org.hibernate.dialect.mySLQDialect
</property>
<mapping resource="cadastro.hbm.xml" />
</session-factory>
</hibernate-configuration>
e fica dando esse erro na hora que dou OK
org.hibernate.MappingException: Could not determine type for: String, at table: logradouro, for columns: [org.hibernate.mapping.Column(tp_logradouro)]