<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="org.hibernate.test.exception" >
	<class name="Group" table="T_GROUP" >
		<id name="id" unsaved-value="null" column="group_id" >
			<generator class="native"/>
		</id>
		<property name="name" type="string" column="name" />
		<set name="members" inverse="true" table="T_MEMBERSHIP" cascade="none">
			<key column="group_id"/>
			<many-to-many class="User" column="user_id"/>
		</set>
	</class>
</hibernate-mapping>