Repository duplicate mapping for column Remove "add insert = false and update = false" errors
There were unnecessary mappings in Entity file (When mapping ManyToOne)
- Close intelij idea
- Delete .idea folder and data-jpa.iml
- Reimport maven project (File -> open)
- Delete Entity classes (Discard warnings when deleting)
- Go to File -> ProjectStructure
- Add "JPA" module (use plus icon)
- Select JPA and set "Default JPA Provider" to "Hibernate"
- Go to View -> Tool Windows -> Persistence
- Generate persistence mapping by database schema
Note: Deselect "Add to Persistence Unit"
- Fix remaining compiling issues (build project)
- Run
- When the LogEntity classes are refactored to Log, entitybeanfactory exception coming up. Reason for that is not yet found