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

io.robe.admin.dto.JobEntityDTO Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.admin.dto;

import io.robe.admin.quartz.hibernate.JobEntity;
import io.robe.quartz.common.JobInfo;
import io.robe.quartz.common.TriggerInfo;

import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hasanmumin on 04/04/16.
 */
public class JobEntityDTO extends JobEntity implements JobInfo {

    @Transient
    private List triggers = new ArrayList<>();

    public JobEntityDTO() {

    }

    public JobEntityDTO(JobEntity entity) {
        setJobClass(entity.getJobClass());
        setName(entity.getName());
        setDescription(entity.getDescription());
        setLastUpdated(entity.getLastUpdated());
        setOid(entity.getOid());
    }

    @Override
    public List getTriggers() {
        return triggers;
    }

    public void setTriggers(List triggers) {
        this.triggers = triggers;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy