posted 14 years ago
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:
Person.java:
Role.java
RolePk.java:
Any ideas?