Write a spring program for the following: Please use hibernate for database operation from spring.Fetch the employee
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a spring program for the following:
Please use hibernate for database operation from spring.Fetch the employee data from Employee table for the employee name “john marquee" along with the salary details.Compute the salary and display the net salary.Salary details are computed as given below:
Gross salary = basic + hra + da
Net salary = gross salary-(tax deductions + deductions).
Tax is 15% of net salary.
Table structure of Employee in the database:
Id | Integer |
Name | Varchar(20) |
Basic | Integer |
HRA | Integer |
DA | Integer |
Deductions | Integer |
Insert 10 records in the Employee table filling in all the columns and let one of the employee record name be "John marquee".
Provide step-by-step solution for the above provided question.
Related Book For
Intermediate Accounting
ISBN: 978-0078025839
9th edition
Authors: J. David Spiceland, James Sepe , Mark Nelson , Wayne Thomas
Posted Date: