<?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><propertyname="connection.url">jdbc:postgresql://localhost:5432/dsmock</property><propertyname="connection.driver_class">org.postgresql.Driver</property><propertyname="dialect">org.hibernate.dialect.PostgreSQLDialect</property><propertyname="connection.username">postgres</property><propertyname="connection.password">datasun2010</property><propertyname="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property><propertyname="hibernate.hbm2ddl.auto">create</property><!-- thread is the short name for org.hibernate.context.ThreadLocalSessionContext and let Hibernate bind the session automatically to the thread --><propertyname="current_session_context_class">thread</property><!-- this will show us all sql statements --><propertyname="hibernate.show_sql">true</property><!-- mapping files --><mappingclass="Pessoa"/></session-factory></hibernate-configuration>
Copiei o datasource para a pasta deploy do JBoss, o hibernate.cfg.xml está na raiz da pasta source e o persistence.xml está na pasta META-INF na raiz da pasta source
O que mais eu preciso fazer pra gerar o banco quando eu inicializo o JBoss?