Sunday, 15 August 2010

org.hibernate.TransientObjectException, how modify method to set instance to persistence state -



org.hibernate.TransientObjectException, how modify method to set instance to persistence state -

i need modify method 1 of controller classes rid hibernate exception null indentifier , create update on dao class, this:

public void updatedealername(string name){ dealerlistview dealer = new dealerlistview(); if(dealer.getdealerid() == getselecteddealerid()) { dealerdata dealdat = new dealerdata(); dealdat.setname(name); beanfactory.gethoteldaoservice(dealerdata.class).update(dealdat); }

selecteddealerid or getter getselecteddealerid() - there stored dealer id dealer list

dealerdata = dao

dealerlistview - used in projection of properties create detachedcriteria knows hibernate

how can modified method null indentifier exception disapeared , create transient instance "dealdat" create persist, need somehow asign selected dealer id instance? can post advice here? if yes i'll thankful.

hibernate

No comments:

Post a Comment