0

When i create table Entity in Jpa With hibernate using PostgreSQL database like,

tire - 

 @Entity
 @Immutable
  public class User_entity_t implements Serializable, Cloneable {

    private static final long serialVersionUID = -7049957706738879274L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id", updatable = false, nullable = false)
    private Long _judId;

@Column(nullable = false)
private String name;

i get exception as

{syntax error at or near "auto_increment"} Primary Key Id

1 Answers1

0

auto_increment sounds like MySQL

You have to set the correct Hibernate dialect.

Simon Martinelli
  • 34,053
  • 5
  • 48
  • 82