Joined: Thu Feb 27, 2014 4:08 am Posts: 3 Location: Frankfurt, Germany
|
I could make it work by changing the variable types in the constructor to Object and making a casting, like this_
public Hospital(Object hospitalId, Object hospitalName){
log.debug("Hospital Id: {}",hospitalId); log.debug("HospitalName: {}",hospitalName);
this.hospitalId= hospitalId.toString(); this.hospitalName= hospitalName.toString();
}
But in the named query it´s all strings. I am migrating from EclipseLink to hibernate and everything was working fine with strings before :-(
|
|