// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_BATCH_DESC = "batch_desc";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_BATCH_NAME = "batch_name";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_LAST_RUN_ID = "last_run_id";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_STATUS = "status";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String TAB_BATCH = "batch";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public final class DBUtils {
// 	public static final String TAB_BATCH = "batch";
// 	public static final String TAB_BATCH_RUNS = "batch_runs";
// 	public static final String TAB_MAPPER_DETAILS = "mapper_details";
// 	public static final String COL_BATCH_NAME = "batch_name";
// 	public static final String COL_BATCH_ID = "batch_id";
// 	public static final String COL_STATUS = "status";
// 	public static final String COL_LAST_RUN_ID = "last_run_id";
// 	public static final String COL_BATCH_CONFIG = "batch_config";
// 	public static final String COL_BATCH_DESC = "batch_desc";
// 	public static final String COL_BATCH_LOCK = "batch_lock";
// 	public static final String COL_START_TIME = "start_time";
// 	public static final String COL_END_TIME = "end_time";
// 	public static final String COL_JOB_ID = "job_id";
// 	public static final String COL_FILE_PATH = "file_path";
// 	public static final String COL_SRC_PATH = "src_path";
// 	public static final String COL_DEST_PATH = "dest_path";
// 	public static final String COL_SRC_SIZE = "src_size";
// 	public static final String COL_DEST_SIZE = "dest_size";
// 	public static final String COL_TASK_ID = "task_id";
// 	public static final String COL_DIGEST = "digest";
// 	public static final String COL_ID = "id";
// 	public static final String COL_TS = "ts";
// }


import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import com.flipkart.fdp.migration.db.utils.DBUtils;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_BATCH_DESC;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_BATCH_NAME;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_LAST_RUN_ID;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_STATUS;
import static com.flipkart.fdp.migration.db.utils.DBUtils.TAB_BATCH;
import static javax.persistence.EnumType.STRING;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
/*
 *
 *  Copyright 2015 Flipkart Internet Pvt. Ltd.
 *
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 *
 */

package com.flipkart.fdp.migration.db.models;






@Entity
@Table(name = TAB_BATCH)
@Getter
public class Batch implements Serializable {

	private static final long serialVersionUID = -5845417058685772115L;

	@Id
	@Column(name = DBUtils.COL_BATCH_ID, nullable = false, unique = true)
	private long batchId;

	@Column(name = COL_BATCH_NAME, nullable = false)
	private String batchName;

	@Column(name = COL_LAST_RUN_ID, nullable = false)
	private String lastRunJobId;

	@Column(name = COL_BATCH_DESC, nullable = false)
	private String desc;

	@Column(name = COL_STATUS)
	@Enumerated(STRING)
	private Status status;

// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_BATCH_DESC = "batch_desc";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_BATCH_NAME = "batch_name";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_LAST_RUN_ID = "last_run_id";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String COL_STATUS = "status";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public static final String TAB_BATCH = "batch";
// 
// Path: src/main/java/com/flipkart/fdp/migration/db/utils/DBUtils.java
// public final class DBUtils {
// 	public static final String TAB_BATCH = "batch";
// 	public static final String TAB_BATCH_RUNS = "batch_runs";
// 	public static final String TAB_MAPPER_DETAILS = "mapper_details";
// 	public static final String COL_BATCH_NAME = "batch_name";
// 	public static final String COL_BATCH_ID = "batch_id";
// 	public static final String COL_STATUS = "status";
// 	public static final String COL_LAST_RUN_ID = "last_run_id";
// 	public static final String COL_BATCH_CONFIG = "batch_config";
// 	public static final String COL_BATCH_DESC = "batch_desc";
// 	public static final String COL_BATCH_LOCK = "batch_lock";
// 	public static final String COL_START_TIME = "start_time";
// 	public static final String COL_END_TIME = "end_time";
// 	public static final String COL_JOB_ID = "job_id";
// 	public static final String COL_FILE_PATH = "file_path";
// 	public static final String COL_SRC_PATH = "src_path";
// 	public static final String COL_DEST_PATH = "dest_path";
// 	public static final String COL_SRC_SIZE = "src_size";
// 	public static final String COL_DEST_SIZE = "dest_size";
// 	public static final String COL_TASK_ID = "task_id";
// 	public static final String COL_DIGEST = "digest";
// 	public static final String COL_ID = "id";
// 	public static final String COL_TS = "ts";
// }


// Path: src/main/java/com/flipkart/fdp/migration/db/models/Batch.java
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import com.flipkart.fdp.migration.db.utils.DBUtils;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_BATCH_DESC;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_BATCH_NAME;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_LAST_RUN_ID;
import static com.flipkart.fdp.migration.db.utils.DBUtils.COL_STATUS;
import static com.flipkart.fdp.migration.db.utils.DBUtils.TAB_BATCH;
import static javax.persistence.EnumType.STRING;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

/*
 *
 *  Copyright 2015 Flipkart Internet Pvt. Ltd.
 *
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 *
 */

package com.flipkart.fdp.migration.db.models;






@Entity
@Table(name = TAB_BATCH)
@Getter
public class Batch implements Serializable {

	private static final long serialVersionUID = -5845417058685772115L;

	@Id
	@Column(name = DBUtils.COL_BATCH_ID, nullable = false, unique = true)
	private long batchId;

	@Column(name = COL_BATCH_NAME, nullable = false)
	private String batchName;

	@Column(name = COL_LAST_RUN_ID, nullable = false)
	private String lastRunJobId;

	@Column(name = COL_BATCH_DESC, nullable = false)
	private String desc;

	@Column(name = COL_STATUS)
	@Enumerated(STRING)
	private Status status;

	@Column(name = COL_BATCH_DESC, nullable = false)