Primary Key

Can someone help me understand AbstractEntity.java file? I understand that @Id annotation will make it the primary key. However, I want to remove AbstractEntity and create my own primary. I am done with that but whenever I update my primary key, it just creates a new row of data and not editing my id. Send help.