0% found this document useful (0 votes)
10 views

Hibernate&struts 2

This Java class defines data access object methods for the Sales entity. It extends the GenericDao class and contains methods to add, remove, and update Sales objects by calling corresponding save, remove, and update methods from the parent class. These methods take a Sales object as a parameter and perform the relevant persistence operation.

Uploaded by

Fabiano Farah
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Hibernate&struts 2

This Java class defines data access object methods for the Sales entity. It extends the GenericDao class and contains methods to add, remove, and update Sales objects by calling corresponding save, remove, and update methods from the parent class. These methods take a Sales object as a parameter and perform the relevant persistence operation.

Uploaded by

Fabiano Farah
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SalesDao.

java

package br.hibernate.dao;

import br.hibernate.beans.Sales;

public class SalesDao extends GenericDao {

public SalesDao() {}

public int addSales(Sales sales){


saveOfUpdatePojo(sales);
return sales.getId();
}

public void removeSales(Sales sales){


removePojo(sales);
}

public void updateSales(Sales sales){


saveOfUpdatePojo(sales);
}

Page 1

You might also like