Javax.mail. Persistence. EntityNotFoundException: Unable to find a class with id?
The reason:
Whether @OneToone or @ManyToone, this is due to the fact that the child table (associated table) has no records corresponding to the ID in the primary table (associated table).
Solutions:
- to check why there is no record for ID in the primary table if the data can be loaded normally without a record for ID in the primary table, you need to add an @notfound Annotation to the primary table field. Example: @onetoone (optional=true)
@joincolumn (name=”UserId “,insertable=false, updatable=false)
@notfound (action=NotFoundAction.IGNORE)
private UserId UserId; In this way, when no data is found in the child table, the corresponding field in the main table is null and no error is reported. Or contact the business personnel, see the data simulation problem, directly kill (I am directly killed)
Read More:
- ubuntu17.10 starts the cycle report: started nvidia persistence daemon[ok] stopped nvidia persistence daemon[ok]
- Unable to access javax.servlet.servletexception [How to Solve]
- java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context
- error: Unable to find vcvarsall.bat terms of settlement
- Java error: unable to find or load the main class
- Unable to find condarc file after installing CONDA
- Idea error: unable to find or load the main class
- Python error: importerror: DLL load failed: unable to find the specified module solution
- Fatal error: Unable to find local grunt.
- RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
- Blas loading error in MATLAB, unable to find the specified module
- Unable to find or load master class org.codehaus.groovy.grails.cli.support
- Unable to find utility “instruments”, not a developer tool or in PATH
- Jumper notebook, import numpy, prompt “importerror: DLL load failed: unable to find the specified module”
- npm run devstart error: Error: Unable to find module ‘semver’
- Unable to find VBScript script engine or error 2738, could not access VBScript runtime
- “Fatal error: Unable to find local grunt.” when running “grunt” command
- Android: How to Solve Execution failed for task ‘:app:compileDebugJavaWithJavac‘. > javax/xml/bind/JAXBException
- Error 500: javax.servlet.ServletException : srve0207e: Solutions
- No qualifying bean of type ‘javax.sql.DataSource‘ available: expected at least 1