Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

<hibernate-mapping default-cascade="none" package="org.sakaiproject.tool.gradebook"
	default-lazy="false">

	<class name="org.sakaiproject.tool.gradebook.LetterGradePercentMapping" table="GB_LETTERGRADE_PERCENT_MAPPING" >

		<id name="id" column="LGP_MAPPING_ID" type="long">
			<generator class="native">
				<param name="sequence">GB_LETTER_MAPPING_S</param>
			</generator>
		</id>

		<version type="integer" name="version" column="VERSION" />

		<property name="mappingType" column="MAPPING_TYPE" type="int" not-null="true" unique-key="uniqueTypeGradebook"/>

		<property name="gradebookId" column="GRADEBOOK_ID" type="long" unique-key="uniqueTypeGradebook"/>

		<map name="gradeMap" table="GB_LETTERGRADE_MAPPING" cascade="all" lazy="false">
    	<key column="LG_MAPPING_ID"/>
      <index column="grade" type="string" />
      <element column="value" type="double" />
    </map>

	</class>
</hibernate-mapping>
New to GrepCode? Check out our FAQ X