package gov.va.med.mpn.entity.pojo;

/**
 * CodedControlData generated by hbm2java
 */

import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.QueryHint;
import javax.persistence.Table;



@Entity
@Table(name="coded_control_data")
@NamedQueries({
	@NamedQuery(
		name="codedcontroldata.findRowWithUUID",
		query="SELECT pojo FROM CodedControlData pojo " +
		      "WHERE " +
			  "pojo.uuid = :uuid",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithControlName",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.controlName LIKE :controlName",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),	
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithClassId",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.classification.id = :classId",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithCategoryId",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.category.id = :catId",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),	
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithCategoryIdAndName",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.category.id = :catId AND pojo.controlName LIKE :controlName",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),	
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithClassificationIdAndName",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.classification.id = :classId AND pojo.controlName LIKE :controlName",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithClassificationIdAndCategoryId",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.classification.id = :classId AND pojo.category.id = :catId ",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		),	
		@NamedQuery(
				name="codedcontroldata.findCodedControlDataWithClassificationIdAndCategoryIdAndName",
				query="SELECT pojo FROM CodedControlData pojo " +
				      "WHERE " +
					  "pojo.classification.id = :classId AND pojo.category.id = :catId AND pojo.controlName LIKE :controlName",hints=@QueryHint(name="org.hibernate.readOnly", value="true")
		)		
              
})

@SuppressWarnings("serial")
public class CodedControlData extends CodedControlDataCore { 

}


