Skip to content
Advertisement

Tag: primary-key

Primary key values are getting updated in Spring boot

I have created a maven project using Spring Boot with MySQL database. I have two entity classes that have a primary key in one entity class and another one has a composite primary key. Customer.java(Has a primary key) ItemId.java (Idclass for Item.java) Item.java (Has a composite primary key) here the problem is when an entity object is persisted through repository

Advertisement