//PatientPO.java
@Entity
@Table(name = "cc_patient")
public class PatientPO {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "pid")
}
//PatientDao.java
public interface PatientDao extends HibernateBaseDao<PatientPO, Integer> {
}
//PatientDaoImpl.java
@Repository("patientDaoImpl")
public class PatientDaoImpl extends HibernateBaseDaoImpl<PatientPO, Integer> implements PatientDao {
}
//PatientService.java
public interface PatientService extends BaseService<PatientPO, Integer> {
}
//PatientServiceImpl.java
@Service("patientServiceImpl")
public class PatientServiceImpl extends BaseServiceImpl<PatientPO, Integer> implements PatientService {
@Resource(name = "patientDaoImpl")
PatientDao dao;
}