Oracle
 sql >> Teknologi Basis Data >  >> RDS >> Oracle

Oracle 11g dan integrasi pegas hibernasi dan jsf

saya mengimpor org.springframework.transaction.annotation.Transactional di CustomerBoImpl.java saya

import java.util.List;
import bo.ICustomerBo;
import dao.ICustomerDao;
import model.Customer;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public class CustomerBoImpl implements ICustomerBo{

    ICustomerDao customerDaoImpl;



    public ICustomerDao getCustomerDaoImpl() {
        return customerDaoImpl;
    }

    public void setCustomerDaoImpl(ICustomerDao customerDaoImpl) {
        this.customerDaoImpl = customerDaoImpl;
    }

@Transactional(readOnly = false)
@Override
    public void addCustomer(Customer customer){

        getCustomerDaoImpl().addCustomer(customer);

    }

@Transactional(readOnly = false)
@Override
    public void updateCustomer(Customer customer){
        getCustomerDaoImpl().updateCustomer(customer);
    }

@Transactional(readOnly = false)
@Override
    public void deleteCustomer(Customer customer){
        getCustomerDaoImpl().deleteCustomer(customer);
    }

@Override
    public List<Customer> findAllCustomer(){

        return getCustomerDaoImpl().findAllCustomer();
    }
}



  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. SQLRecoverableException:Pengecualian I/O:Reset koneksi

  2. Menghubungkan Oracle ke SQL Server dari Windows

  3. Ubah Stempel Waktu Unix menjadi Nilai Tanggal di Oracle

  4. Fungsi JSON_ARRAYAGG() di Oracle

  5. Oracle PL/SQL - Koleksi (Tabel Bersarang)