Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Liquibase handling Default data and then adding data from hibernate in same table gives error

$
0
0
I am using liquibase to insert default user in database in admin table. I am using my web application (Spring boot, Hibernate ) to register new users. After populating database with default admin user, when i first try to add new user from web application in same admin table i get duplicate key value violates unique constraint Key already exists error


In my entity i have used GenerationType AUTO I have also tried with using SEQ and Table strategy but no fix.
How do i fix this issue so when a new user is added after default user added from liquibase it does not give you error

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>