Javax.mail. Persistence. EntityNotFoundException: Unable to find a class with id?
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).
- 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)
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)
- DB2 create table error – 104 42601 illegal symbol encountered in SQL statement
- MySQL:Foreign key fails with error Error Code: 1452.
- MySQL partitions the existing tables of the data table
- Solution of duplicate entry ‘value’ for key ‘field name’ in MySQL
- Modification method of starting value of MySQL auto increment ID
- The solution of Hibernate query returning all null lists
- The MySQL load data command parses and handles error 29 (errCode: 13) errors (in the Ubuntu environment)
- MySQL failed to add foreign key error 1452
- [reprint and save] MySQL does not set the primary key and uses the self growing ID method
- Txt import MySQL: error 1062 (23000): duplicate entry ‘0’ for key ‘primary’
- ORA-00907:missing right parenthesis
- Duplicate entry ‘787192513’ for key ‘primary’
- mysql error 1062
- MySQL creates tables and sets auto increment of primary keys
- MySQL error: can’t create table ‘..’（ errno:150 ）Solutions
- 1822 – Failed to add the foreign key constraint. Missing index for constraint ‘tb_emp_ibfk_1’ in the
- How to make the import complete smoothly!
- Waitpid call return error prompt: no child processes problem
- MySQL operation and maintenance slave_ skip_ errors
- Some mistakes and solutions in Django