id « JDBC « JPA Q&A





1. JPA(hibernate) @Id Error:Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'DbName.system_sequences' doesn't exist    stackoverflow.com

Below is my entity id's definition and I am using hibernate as the jpa implemention

@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;
I am using Mysql. ...

2. Java Hibernate id auto increment    stackoverflow.com

Hy I'v a little problem with hibernate on netbeans. I've a table with an Auto increment id :

CREATE TABLE "DVD"
(
    "DVD_ID" INT not null primary key
     ...