In my database there si one to one relationship between person and role.Role has a composite primary key so I'm using RokePk class to map that.When I try to read a certain user from the database this exception occurs:"com.spinnaker.pedja.Role cannot be cast to java.io.Serializable".Here are the classes:
posted 7 years ago
Maybe make the Role and Person beans also implement Serializable interface. The RolePk bean does.
Error: Keyboard not attached. Press F1 to continue.