小编Jos*_*oka的帖子

实体类的娱乐

我尝试在netbeans 8.0.1上使用hibernate,spring和jpa运行一个Web应用程序,但是现在我在编译应用程序时遇到了这个异常...以下是错误:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-    compile) on project SMSXxxxx: Compilation failure: Compilation failure:
error: Problem with Filer: Attempt to recreate a file for type  com.equitel.smsmanager.entities.TextMessageContent_
error: Problem with Filer: Attempt to recreate a file for type com.smsmanager.entities.SmsUser_
Run Code Online (Sandbox Code Playgroud)

这是持久性单元,我的项目中只有一个

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
 <persistence-unit name="SMSManagerPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/jboss/datasources/SMSManagerDS</jta-data-source>
<class>com.smsmanager.entities.Approval</class>
<class>com.smsmanager.entities.Changelog</class>
<class>com.smsmanager.entities.Contacts</class>
<class>com.smsmanager.entities.Dispatches</class>
<class>com.smsmanager.entities.MessageSchedule</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
  <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
</properties>
</persistence-unit>
</persistence>
Run Code Online (Sandbox Code Playgroud)

我没有解决此错误,您能帮我解决此问题吗?

jpa

3
推荐指数
2
解决办法
1853
查看次数

标签 统计

jpa ×1