|
Hello,
I got an error if I try to save o object with a set:
Dec 13, 2004 6:27:55 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: ena.bl.Person, BulkBeanException: Cannot find specified property (property setAddress)
Dec 13, 2004 6:27:56 PM net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Hibernate: select hibernate_sequence.nextval from dual
Exception in thread "main" java.lang.ClassCastException: java.util.Vector
The Java class is:
public class Person extends BusinessObject {
public String Surname;
[...]
public Vector<Address> Address; // of Address
public Vector<CommunicationInfo> ComInfo; // of CommunicationInfo
public Person() {
super();
this.Address = new Vector<Address>();
this.ComInfo = new Vector<CommunicationInfo>();
}
public void setAddress(Address Adr) {
this.Address.add(Adr);
}
public void setCommunicationInfo(CommunicationInfo CI) {
this.ComInfo.add(CI);
}
[...]
What is wrong?
Regards Richard
|