How can i solve the problem Violation d'index unique ou clé primaire in my project jhipster quarkus

26 Views Asked by At

I was trying to develop a Jhipster Quarkus app with two entities, Product and Category. I've generated the app but when I try to add a category I get the issue mentioned

my jdl file :

`entity Product { designation String prix Double quantity Integer }

entity Category { libelle String }

relationship ManyToOne Product{Category(libelle)} to Category }`

Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Violation d'index unique ou clé primaire: "PRIMARY KEY ON PUBLIC.CATEGORY(ID) ( / key:1 / CAST(1 AS BIGINT), 'Table')" Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.CATEGORY(ID) ( / key:1 / CAST(1 AS BIGINT), 'Table')"; SQL

0

There are 0 best solutions below