Hello List,
i'm trying to update an Hibernate-Object but alway get an "a different object
with the same identifier value was already associated with the session:"
Exception.
My Form-Code looks like:
@Inject
private ConfigurationDAO configDAO;
@Persist
@Property
private Configuration config;
void onSuccessFromConfigForm(){
config.setEditDate(new Date());
configDAO.doSave(config);
}
void onActivate(Long configId){
config=configDAO.doRetrieve(configId,false);
}
void onActivate(){
configs = configDAO.findAll();
if(config==null)
config=new de.leomedia.leotipp.model.Configuration();
}
can anyone give me a lead into the right direction?
thanks, Dominik