jsf - Save specific value to Hibernate -
can force me forwards in issue, have snipet od code in bean
public void setselecteddealername(string name){ dealerdata dealdat = new dealerdata(); dealdat.setname(name); beanfactory.gethoteldaoservice(dealerdata.class).saveorupdate(dealdat); }
this code launch through inplace component primefaces
<p:inplace id="dealer" editor="true" > <p:ajax event="save" update="name"/> <p:inputtext id="name" value="#{salescontroller.selecteddealername}" /> </p:inplace>
but when save clicked update not happend console in eclipse this
hibernate: insert book_dealerdata (name, registration, taxnumber, timestamp, idauthor, idbook_dealer, channel, street, number, zip, city, country, telephone, email) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
so guess code becasue database invoked how modify method update 'name' property in database? if know how to, please leave post, lot
hibernate jsf
No comments:
Post a Comment