Question: Using Hibernate Increase faculty Min Tuyet's salary by 10% Example: hql = select p from Person p; List result = session.createQuery(hql).list(); String toShow = ;

 Using Hibernate Increase faculty Min Tuyet's salary by 10% Example: hql

Using Hibernate Increase faculty Min Tuyet's salary by 10%

Example:

hql = "select p from Person p";

List result = session.createQuery(hql).list();

String toShow = "";

Object[][] tableRow = new Object[result.size()][3];

for (int i = 0; i

Person thePerson = (Person) result.get(i);

tableRow[i][0] = thePerson.getId();

tableRow[i][1] = thePerson.name;

tableRow[i][2] = thePerson.address;

}

Object[] tableCol = { "ID", "Name", "Address" };

JTable theTable = new JTable(tableRow, tableCol);

JOptionPane.showMessageDialog(null, new JScrollPane(theTable));

session.getTransaction().commit();

person (NAME, ID, ADDRESS, DOB) o faculty (FACULTYID, RANK, SALARY) student (STUDENTID, CLASSIFICATION, GPA, MENTORID, CREDITHOURS) An object-oriented representation is shown as follows. person NAME ADDRE55 DOES ex ends exdends faculty Student RANK CLASSIFICATION GPA CREDITHOURS MENTORS MENTOR

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!