O'Reilly logo

Enterprise Application Development with Ext JS and Spring by Gerald Gierer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining the DAO implementations

The following DAO implementations will inherit the core CRUD operations from GenericDaoImpl and add their own class-specific methods as defined in the implemented interface. Each method will use the @Transactional annotation to define the appropriate transactional behavior.

The CompanyDaoImpl class

The full listing for our CompanyDaoImpl class is as follows:

package com.gieman.tttracker.dao;

import com.gieman.tttracker.domain.Company;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Repository("companyDao") @Transactional public class CompanyDaoImpl extends GenericDaoImpl<Company, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required