<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="gov.va.med.cds.template.generated.allergies.DrugIngredient" entity-name="DrugIngredient" table="DRUG_INGREDIENT_V" >
        <id name="id" type="java.lang.Long">
            <column name="DRUG_INGREDIENT_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_ingredient_seq_id</param>
			</generator>
        </id>

        <component name="code" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="DRUG_INGREDIENT_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_INGREDIENT_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="DRUG_INGREDIENT_CODSYS" type="java.lang.String" />
		</component>

    </class>
        
    <class name="gov.va.med.cds.template.generated.allergies.DrugIngredient" entity-name="vwDrugIngredient" table="DRUG_INGREDIENT_V" >
        <id name="id" type="java.lang.Long">
            <column name="DRUG_INGREDIENT_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_ingredient_seq_id</param>
			</generator>
        </id>

        <component name="code" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="DRUG_INGREDIENT_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_INGREDIENT_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="DRUG_INGREDIENT_CODSYS" type="java.lang.String" />
		</component>

    </class>
</hibernate-mapping>
