<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="xml" indent="yes"/>

<xsl:template match="keyval">
<hibernate-mapping>
  <xsl:comment>
    DO NOT EDIT!

    AUTOMATICALLY GENERATED FROM XML USING keyval2hibernate.xsl
  </xsl:comment>

  <class name="{@namespace}.{@class}" table="{@class}">
    <id name="id" column="{@class}/>_id" type="long" unsaved-value="null">
	<generator class="hilo"/>
    </id>

    <property name="firstName" column="firstName" type="string" not-null="true"/>

  </class>

</hibernate-mapping>

</xsl:template>

</xsl:stylesheet>
