|
|
7 lat temu | |
|---|---|---|
| .mvn/wrapper | 7 lat temu | |
| src | 7 lat temu | |
| .gitignore | 7 lat temu | |
| README.md | 7 lat temu | |
| ddl.txt | 7 lat temu | |
| mvnw | 7 lat temu | |
| mvnw.cmd | 7 lat temu | |
| pom.xml | 7 lat temu |
spring boot 2 JPA相关的代码
结果
{“ex”:{“exClass”:“org.springframework.orm.jpa.JpaSystemException”,“message”:“ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User”},“exCause”:{“causeBy”:“org.hibernate.id.IdentifierGenerationException”,“message”:“ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User”}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.ConstraintViolationException”,“message”:“could not execute statement”}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.DataException”,“message”:“could not execute statement”}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; constraint [PRIMARY]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.ConstraintViolationException”,“message”:“could not execute statement”}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; constraint [idx_email]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.ConstraintViolationException”,“message”:“could not execute statement”}}
{“ex”:{“exClass”:“org.springframework.orm.jpa.JpaSystemException”,“message”:“ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User”},“exCause”:{“causeBy”:“org.hibernate.id.IdentifierGenerationException”,“message”:“ids for this class must be manually assigned before calling save(): ltass.staudy.spring.data.jpa.entity.User”}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.ConstraintViolationException”,“message”:“could not execute statement”}}
“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.DataException”,“message”:“could not execute statement”}}
{“ex”:{“exClass”:“org.springframework.orm.ObjectOptimisticLockingFailureException”,“message”:“Object of class [ltass.staudy.spring.data.jpa.entity.User] with identifier [1]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [ltass.staudy.spring.data.jpa.entity.User#1]“},“exCause”:{“causeBy”:“org.hibernate.StaleObjectStateException”,“message”:“Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [ltass.staudy.spring.data.jpa.entity.User#1]“}}
{“ex”:{“exClass”:“org.springframework.dao.DataIntegrityViolationException”,“message”:“could not execute statement; SQL [n/a]; constraint [idx_email]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement”},“exCause”:{“causeBy”:“org.hibernate.exception.ConstraintViolationException”,“message”:“could not execute statement”}}