Hi,
I am having a problem with persisting an entity within a persistence context in Spring Webflow.
I get the following error:
org.springframework.webflow.execution.repository.c ontinuation.ContinuationCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable; nested exception is java.io.NotSerializableException: org.hibernate.util.MarkerObject
java.io.NotSerializableException: org.hibernate.util.MarkerObject
Why is it trying to serialize a org.hibernate.util.MarkerObject object?
I want to point out that all my objects implement Serializable.
I have already post this on the SWF forum and have been told to try the Hibernate Forums.
See
http://forum.springframework.org/showth ... post171964 for details.
Could anyone please help me out?
My model looks something like this:
Code:
/**
* @hibernate.joined-subclass table="echtgenoot"
* @hibernate.joined-subclass-key column="person_id"
*/
public class Echtgenoot extends Person {
private boolean zelfinkomen;
private String beroep;
private boolean vermLB;
// Other booleans
// Getters and setters
}
/**
* @hibernate.class table="person"
*/
public class Person extends Base {
private String id;
private String name;
private String lastname;
private String address;
private String phone;
private String workphone;
private char gender = 'M';
private String endDate;
private String beginDate;
private Set<Authority> privileges;
// Getters and setters
}
public class Base implements Serializable {
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
/**
* @hibernate.class table="authority"
*/
public class Authority extends Base {
private Long id;
private String name;
// Getters and setters
}