Perdón, es que lo único que he visto de hibernate es asociado a Spring.
Échale un vistazo a este documento y mira si puedes aprovechar algo ;)
http://www.laliluna.de/download/stru...utorial-en.pdf
Especialmente a:
<?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.url">jdbc:postgresql://localhost/libraryweb</property>
<property name="connection.username">postgres</property>
<property name="connection.password">p</property>
<property name="connection.driver_class">org.postgresql.Driv er</property>
<property name="dialect">org.hibernate.dialect.PostgreSQLDia lect</property>
</session-factory>
</hibernate-configuration>