// Path: app/models/DisasterRecoveryOperation.java
// @Entity
// public class DisasterRecoveryOperation extends BaseModel {
// 
//     public enum OperationStatus {
//         PROGRESS,
//         SUCCESS,
//         FAILED
//     }
// 
//     public DisasterRecoveryOperation(RemoteHost.RecoveryType type) {
//         this.status = OperationStatus.PROGRESS;
//         this.type = type;
//     }
// 
//     public RemoteHost.RecoveryType type;
// 
//     @OneToMany(mappedBy = "operation")
//     public List<OperationLog> logs = new ArrayList<OperationLog>();
// 
//     public OperationStatus status;
// 
//     public void addMessageLog(String message) {
//         addLog(OperationLog.MessageType.MESSAGE, message);
//     }
// 
//     public void addErrorLog(String message) {
//         addLog(OperationLog.MessageType.ERROR, message);
//     }
// 
//     private void addLog(OperationLog.MessageType type, String message) {
//         OperationLog log = new OperationLog(type);
//         log.message = message;
//         log.operation = this;
//         log.save();
//     }
// 
// }
// 
// Path: app/models/UserRole.java
// @Entity
// public class UserRole extends Model {
//     
// 	public enum RoleCode {
// 		ADMINISTRATOR,
// 		TECNICO
// 	}
// 	
// 	@Required
// 	@MaxSize(45)
// 	@Column(length=45, nullable=false)
// 	public String name;
// 	
// 	@Required
// 	@Column(nullable=false)
// 	public RoleCode code;
// 	
// 	@MaxSize(100)
// 	@Column(length=100, nullable=true)
// 	public String description;
// 	
// }


import models.DisasterRecoveryOperation;
import models.UserRole;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;
import java.util.List;
package jobs;



@OnApplicationStart
public class StartupJob extends Job {

	@Override
	public void doJob() throws Exception {
		if (UserRole.count() == 0) {
// Path: app/models/DisasterRecoveryOperation.java
// @Entity
// public class DisasterRecoveryOperation extends BaseModel {
// 
//     public enum OperationStatus {
//         PROGRESS,
//         SUCCESS,
//         FAILED
//     }
// 
//     public DisasterRecoveryOperation(RemoteHost.RecoveryType type) {
//         this.status = OperationStatus.PROGRESS;
//         this.type = type;
//     }
// 
//     public RemoteHost.RecoveryType type;
// 
//     @OneToMany(mappedBy = "operation")
//     public List<OperationLog> logs = new ArrayList<OperationLog>();
// 
//     public OperationStatus status;
// 
//     public void addMessageLog(String message) {
//         addLog(OperationLog.MessageType.MESSAGE, message);
//     }
// 
//     public void addErrorLog(String message) {
//         addLog(OperationLog.MessageType.ERROR, message);
//     }
// 
//     private void addLog(OperationLog.MessageType type, String message) {
//         OperationLog log = new OperationLog(type);
//         log.message = message;
//         log.operation = this;
//         log.save();
//     }
// 
// }
// 
// Path: app/models/UserRole.java
// @Entity
// public class UserRole extends Model {
//     
// 	public enum RoleCode {
// 		ADMINISTRATOR,
// 		TECNICO
// 	}
// 	
// 	@Required
// 	@MaxSize(45)
// 	@Column(length=45, nullable=false)
// 	public String name;
// 	
// 	@Required
// 	@Column(nullable=false)
// 	public RoleCode code;
// 	
// 	@MaxSize(100)
// 	@Column(length=100, nullable=true)
// 	public String description;
// 	
// }


// Path: app/jobs/StartupJob.java
import models.DisasterRecoveryOperation;
import models.UserRole;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;
import java.util.List;

package jobs;



@OnApplicationStart
public class StartupJob extends Job {

	@Override
	public void doJob() throws Exception {
		if (UserRole.count() == 0) {
			Fixtures.loadModels("initial-data.yml");