Skip to content
Snippets Groups Projects
Commit a0fc0a42 authored by Leonard's avatar Leonard
Browse files

add exceptions

parent 9ea1080f
No related branches found
No related tags found
No related merge requests found
# Persistence:
# Exceptions and Solutions
## Persistence:
### Exception: java.lang.ClassCastException
* stack trace: class org.hibernate.mapping.SingleTableSubclass cannot be cast to class org.hibernate.mapping.RootClass
* Possible Solution: Remove @Id Tags from Subclasses.
###
### Exception: Unmapped class
* Solution: Add class to persistence mapping in META-INF/persistence.xml
### Exception: Primary key violation
* Solution: an entity with this key already exists you idiot, change it!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment