Olá,
peguei um exemplo de um framework para testar mais queria alterar para acessar meu Mysql
mais estou com problema pois não estou achando o arquivo no Jboss para fazer isso …
O que quero fazer alterar o arquivo abaixo para acesso do Mysql mais quando altero da erro …
Se alguém puder me ajudar…
abs
arquivo atual
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" 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_2_0.xsd">
<!-- If you are using jboss6 with non JTA transaction then use this persistence-unit -->
<!--
-->
<persistence-unit name="bookmark-ds" transaction-type="RESOURCE_LOCAL">
<non-jta-data-source>java:/DefaultDS</non-jta-data-source>
<class>br.com.teste.paul.domain.Bookmark</class>
<properties>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
</properties>
</persistence-unit>
arquivo qdo altero e da erro
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" 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_2_0.xsd">
<!-- If you are using jboss6 with non JTA transaction then use this persistence-unit -->
<!--
-->
<persistence-unit name="inscricao-ds" transaction-type="RESOURCE_LOCAL">
<class>br.gov.serpro.inscricao.entity.Aluno</class>
<properties>
<property name="hibernate.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
<property name="hibernate.persistence.jdbc.user" value="root" />
<property name="hibernate.persistence.jdbc.password" value="paulo" />
<property name="hibernate.persistence.jdbc.url" value="jdbc:mysql://127.0.0.1/teste" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="show_sql" value="true" />
<property name="format_sql" value="true" />
<property name="hbm2ddl.auto" value="update" />
</properties>