// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/model/SanitizationScript.java
// @Entity
// public class SanitizationScript {
// 
// 	public final static long ID = 1;
// 
// 	@Id
// 	private long id = ID;
// 
// 	private String script;
// 
// 	protected SanitizationScript() {
// 	}
// 
// 	public SanitizationScript(final String script) {
// 		this.setScript(script);
// 	}
// 
// 	public String getScript() {
// 		return script;
// 	}
// 
// 	private void setScript(String script) {
// 		this.script = script;
// 	}
// 
// 	public long getId() {
// 		return id;
// 	}
// 
// 	public void setId(long id) {
// 		this.id = id;
// 	}
// }
// 
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/repo/ScriptRepo.java
// public interface ScriptRepo extends CrudRepository<SanitizationScript, Long> {
// 
// }


import org.cloudfoundry.community.servicebroker.datalifecycle.model.SanitizationScript;
import org.cloudfoundry.community.servicebroker.datalifecycle.repo.ScriptRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
package org.cloudfoundry.community.servicebroker.datalifecycle.service;


@Service
public class DataProviderService {

	private ScriptRepo scriptRepo;

	@Autowired
	public DataProviderService(ScriptRepo scriptRepo) {
		this.scriptRepo = scriptRepo;
	}

	public void saveScript(String script) {
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/model/SanitizationScript.java
// @Entity
// public class SanitizationScript {
// 
// 	public final static long ID = 1;
// 
// 	@Id
// 	private long id = ID;
// 
// 	private String script;
// 
// 	protected SanitizationScript() {
// 	}
// 
// 	public SanitizationScript(final String script) {
// 		this.setScript(script);
// 	}
// 
// 	public String getScript() {
// 		return script;
// 	}
// 
// 	private void setScript(String script) {
// 		this.script = script;
// 	}
// 
// 	public long getId() {
// 		return id;
// 	}
// 
// 	public void setId(long id) {
// 		this.id = id;
// 	}
// }
// 
// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/repo/ScriptRepo.java
// public interface ScriptRepo extends CrudRepository<SanitizationScript, Long> {
// 
// }


// Path: src/main/java/org/cloudfoundry/community/servicebroker/datalifecycle/service/DataProviderService.java
import org.cloudfoundry.community.servicebroker.datalifecycle.model.SanitizationScript;
import org.cloudfoundry.community.servicebroker.datalifecycle.repo.ScriptRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

package org.cloudfoundry.community.servicebroker.datalifecycle.service;


@Service
public class DataProviderService {

	private ScriptRepo scriptRepo;

	@Autowired
	public DataProviderService(ScriptRepo scriptRepo) {
		this.scriptRepo = scriptRepo;
	}

	public void saveScript(String script) {
		scriptRepo.save(new SanitizationScript(script));