Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 849 Bytes

ENTITY_ISSUE_FIX.md

File metadata and controls

23 lines (20 loc) · 849 Bytes

Issue

Repository duplicate mapping for column Remove "add insert = false and update = false" errors

Reason

There were unnecessary mappings in Entity file (When mapping ManyToOne)

How to fix

  1. Close intelij idea
  2. Delete .idea folder and data-jpa.iml
  3. Reimport maven project (File -> open)
  4. Delete Entity classes (Discard warnings when deleting)
  5. Go to File -> ProjectStructure
  6. Add "JPA" module (use plus icon)
  7. Select JPA and set "Default JPA Provider" to "Hibernate"
  8. Go to View -> Tool Windows -> Persistence
  9. Generate persistence mapping by database schema

Note: Deselect "Add to Persistence Unit"

  1. Fix remaining compiling issues (build project)
  2. Run

Issue in refactoring Log classes

  1. When the LogEntity classes are refactored to Log, entitybeanfactory exception coming up. Reason for that is not yet found