I’m creating a user and role association with ManyToOne & OneToMany mappings. I’m executing this thru a rest API to persist data. The issue is that when I run API multiple times, the same role is created multiple times in role table. Below the details. Please help.
Database used is PostGreSqL
Issue here - same role is created multiple times, which should not be ideally.