Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JPA(hibernate)@Id错误:由以下原因引起:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:Table';DbName.system#u序列';不';不存在_Hibernate_Jpa - Fatal编程技术网

JPA(hibernate)@Id错误:由以下原因引起:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:Table';DbName.system#u序列';不';不存在

JPA(hibernate)@Id错误:由以下原因引起:com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:Table';DbName.system#u序列';不';不存在,hibernate,jpa,Hibernate,Jpa,下面是我的实体id的定义,我使用hibernate作为jpa实现 @Id @TableGenerator(name="customer_generator", table="system_sequences",pkColumnName="sequence_name", valueColumnName="sequence_next_hi_value",initialValue=1,allocationSize=20) @GeneratedValue(strategy = Generatio

下面是我的实体id的定义,我使用hibernate作为jpa实现

@Id
@TableGenerator(name="customer_generator",
  table="system_sequences",pkColumnName="sequence_name",
  valueColumnName="sequence_next_hi_value",initialValue=1,allocationSize=20)
@GeneratedValue(strategy = GenerationType.TABLE, generator = "customer_generator")
@Column(name="custid", unique=true, nullable=false)
private Long id;
我正在使用Mysql。下面是错误跟踪的一部分

Caused by:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'databrowser.system_sequences' doesn't exist
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1026)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
 at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
 at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2228)
 at org.hibernate.id.MultipleHiLoPerTableGenerator.doWorkInCurrentTransaction(MultipleHiLoPerTableGenerator.java:135)
 at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:38)
  ... 53 more
数据库中不存在表“system_sequences”! 此表存在于名为“information_schema”的MySQL模式中。 直接到。

数据库中不存在“系统序列”表! 此表存在于名为“information_schema”的MySQL模式中。
直接指向。

是否指定了正确的架构名称?是否指定了正确的架构名称?