Eu instalei os arquivos JAR do Hibernate como library no Netbeans 6.0 mas não consigo configurar para que apareça esta opção quando vou definir a Persistence Unit do meu projeto. Alguém sabe como confiurar o Hibernate no Netbeans?
Hiberbante como Persistence Unit no netbeans
2 Respostas
Exemplo de persistence.xml usando hibernate, copiado do site do Vraptor
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="default">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value=""/>
<property name="hibernate.connection.url" value="jdbc:hsqldb:."/>
<property name="hibernate.max_fetch_depth" value="3"/>
</properties>
</persistence-unit>
</persistence>
espero que ajude 
ué, no meu sempre apareceu tranquilo, cara…