• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to update using Hibernate

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have the following columns in my table.
Table name : EMPLOYEE
Column names in table EMPLOYEE are ID,EMP_ID,EMP_NAME,EMP_PWD

corresponding persistent java class in Employee.java
public class Employee implements Serializable{

private static final long serialVersionUID = 1L;
private int id;
private String empId;
private String empName;
private String empPwd;
public Employee(){}

/**
* @return the empId
*/
public String getEmpId() {
return empId;
}

/**
* @return the id
*/
public int getId() {
return id;
}

/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}

/**
* @param empId the empId to set
*/
public void setEmpId(String empId) {
this.empId = empId;
}

/**
* @return the empName
*/
public String getEmpName() {
return empName;
}

/**
* @param empName the empName to set
*/
public void setEmpName(String empName) {
this.empName = empName;
}

/**
* @return the empPwd
*/
public String getEmpPwd() {
return empPwd;
}

/**
* @param empPwd the empPwd to set
*/
public void setEmpPwd(String empPwd) {
this.empPwd = empPwd;
}


}

My question is How to update the password in table corresponding to given EmployeeID or Employee Name?.
reply
    Bookmark Topic Watch Topic
  • New Topic