每次启动应用程序时都会出现SQLSyntaxErrorException。 我没有任何jpa继承经验 并且不知道表的创建位置。 有谁知道更多这方面并且愿意帮忙吗?
异常
Call:
lm(formula = as.matrix(df[c("Y1", "Y2")]) ~ df$X)
Coefficients:
Y1 Y2
(Intercept) -0.15490 -0.08384
df$X -0.15026 -0.02471
的persistence.xml
[EL Warning]: 2017-09-17 18:16:13.471--ServerSession(2032898330)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered ")" at line 1, column 20.
Error Code: 30000
Call: CREATE TABLE ITEM ()
Query: DataModifyQuery(sql="CREATE TABLE ITEM ()")
物品
<?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="Boredom2.0PU" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>domain.item.Book</class>
<class>domain.item.Movie</class>
<class>domain.item.TvShow</class>
<class>domain.item.Franchise</class>
<class>domain.item.Comicbook</class>
<class>domain.item.VideoGame</class>
<class>domain.item.Manga</class>
<class>domain.item.Genre</class>
<class>domain.item.Item</class>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:derby://localhost:1527/BoredomDB"/>
<property name="javax.persistence.jdbc.user" value="root"/>
<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
<property name="javax.persistence.jdbc.password" value="root"/>
<property name="javax.persistence.schema-generation.database.action" value="create"/>
</properties>
</persistence-unit>
</persistence>
IEntity
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class Item extends IEntity implements Serializable{