All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.workflow.data.dao.impl.FlowDefineDaoImpl Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
package com.quhaodian.workflow.data.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.quhaodian.data.core.CriteriaDaoImpl;
import com.quhaodian.workflow.data.dao.FlowDefineDao;
import com.quhaodian.workflow.data.entity.FlowDefine;

/**
* Created by imake on 2018年01月08日14:52:00.
*/
@Repository

public class FlowDefineDaoImpl extends CriteriaDaoImpl implements FlowDefineDao {

	@Override
	public FlowDefine findById(Long id) {
	    if (id==null) {
			return null;
		}
		return get(id);
	}

	@Override
	public FlowDefine save(FlowDefine bean) {

        getSession().save(bean);
		
		
		return bean;
	}

    @Override
	public FlowDefine deleteById(Long id) {
		FlowDefine entity = super.get(id);
		if (entity != null) {
			getSession().delete(entity);
		}
		return entity;
	}
	
	@Override
	protected Class getEntityClass() {
		return FlowDefine.class;
	}
	
	@Autowired
	public void setSuperSessionFactory(SessionFactory sessionFactory){
	    super.setSessionFactory(sessionFactory);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy