常用到的注解示例

来源:互联网 发布:淘宝商品种类查询 编辑:程序博客网 时间:2024/05/29 13:36
//PatientPO.java@Entity@Table(name = "cc_patient")public class PatientPO {@Id@GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "pid")}


//PatientDao.javapublic interface PatientDao extends HibernateBaseDao<PatientPO, Integer> {}


//PatientDaoImpl.java@Repository("patientDaoImpl")public class PatientDaoImpl extends HibernateBaseDaoImpl<PatientPO, Integer> implements PatientDao {}


//PatientService.javapublic interface PatientService extends BaseService<PatientPO, Integer> {}


//PatientServiceImpl.java@Service("patientServiceImpl")public class PatientServiceImpl extends BaseServiceImpl<PatientPO, Integer> implements PatientService {@Resource(name = "patientDaoImpl")PatientDao dao;}





0 0
原创粉丝点击