Hi Matt, how are you?
So, Where do I view the hibernate.cfg.xml style of configuration ?
It follows below the User mapping.
Code:
<hibernate-mapping>
<class name="br.com.proj.dao.register.User" table="users">
<property name="dtExclusion" column="dt_exclusion"/>
<property name="dtInclusion" column="dt_inclusion"/>
<id name="idUser" column="id_user">
<generator class="assigned"/>
</id>
<property name="name" column="name"/>
<property name="password" column="password"/>
<property name="stUser" column="st_user"/>
<property name="nbEmployee" column="nb_employee"/>
<many-to-one name="department" column="id_department" class="br.com.proj.dao.register.Department"/>
<many-to-one name="parentUser" column="id_parent_user"/>
<many-to-one name="template" column="id_template"/>
</class>
</hibernate-mapping>
I don