<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-
"http:>
<hibernate-mapping>
<class name=“my.class.TransportConfig" table="transportconfig">
<id name="identifier" type="java.lang.String" access="field">
<column name="transport_id" sql-type="varchar(191)"/>
<generator class="assigned" />
</id>
<property name="type" access="field" not-null="true">
<column name="type" sql-type="varchar(50)"/>
<type name="org.hibernate.type.EnumType">
<param name="enumClass">my.class.TransportConfig$Type</param>
<param name="useNamed">true</param>
</type>
</property>
</class>
</hibernate-mapping>