流动是我的持久性xml文件,所以我的问题是? 我使用RESOURCE_LOCAL是不是错了?
<persistence-unit name="default-persistence-unit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>model.Task</class>
<properties>
<property name="javax.persistence.jdbc.driver" value="net.sourceforge.jtds.jdbc.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:jtds:sqlserver://localhost:1433/reports"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password" value="clubsa"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="show_sql" value="true"/>
</properties>
</persistence-unit>