Persistence provider caller does not implement the EJB3 spec correctly. Pers

Persistence provider caller does not implement the EJB3 spec correctly. 實體bean發佈出現的問題,將persistence.xml改爲

<?xml version="1.0" encoding="UTF-8"?>
<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="ejbjpa2" transaction-type="JTA">
  <jta-data-source>java:/MySqlDS</jta-data-source>
  <properties>
  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
  </properties>
</persistence-unit>
  
</persistence>即可

發佈了55 篇原創文章 · 獲贊 11 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章