Cannot be cast to java.io.Serializable

Source: Internet
Author: User

The previous three days have been doing Linux, because beginners, encountered a lot of problems. System reload again and again, under a wine loaded up, and then with wine installed the school's broadband authentication client, installed clients and encountered the problem of Chinese garbled, still unresolved. Finally simply installed a broadband authentication client in English, to avoid Chinese, but, new problems appear again, this use of wine installed client run time and reported a bunch of errors, crash, well, this is the frequency I said these days the highest sentence.

Pull away ... It's a very, very. (mainly to vent the depressed mood, adjust the mood.) )

Today began to write OA's organizational management and staff management module.

The crud of the organization has been implemented, and the CRUD for employee management today is first the implementation of the employee list, which is passed by the department number or ID of the department in which the employee belongs.

During the encounter such a problem "model.org cannot be cast to java.io.Serializable"

It is very clear that the Org object cannot be mapped to java.io.Serializable, meaning that org must implement the Serializable interface

Because there is a relationship between the department org and the employee person, the employee's Pojo holds a reference to the department, and when a lookup command is implemented at the DAO layer, I need to use the Person.org.id latter Person.org.deptno (departmental number), so the Org object must be serialized to ensure the integrity of the object's data delivery.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.