0,0 → 1,81 |
<?xml version="1.0"?> |
|
<!DOCTYPE hibernate-mapping PUBLIC |
"-//Hibernate/Hibernate Mapping DTD 2.0//EN" |
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> |
|
<hibernate-mapping> |
<class |
name="ak.webcontrol.core.model.MailAlias" |
table="mailaliases" |
dynamic-update="false" |
dynamic-insert="false" |
> |
|
<id |
name="id" |
column="id" |
type="java.lang.Long" |
> |
<generator class="native"> |
</generator> |
</id> |
|
<timestamp |
name="modStamp" |
column="mod_stamp" |
/> |
|
<property |
name="address" |
type="java.lang.String" |
update="true" |
insert="true" |
column="address" |
/> |
|
<many-to-one |
name="domain" |
class="ak.webcontrol.core.model.InetDomain" |
cascade="none" |
outer-join="auto" |
update="true" |
insert="true" |
column="domain" |
/> |
|
<many-to-one |
name="owner" |
class="ak.webcontrol.core.model.User" |
cascade="none" |
outer-join="auto" |
update="true" |
insert="true" |
column="owner" |
/> |
|
<bag |
name="destinations" |
lazy="false" |
inverse="true" |
cascade="all-delete-orphan" |
> |
|
<key |
column="alias" |
/> |
|
<one-to-many |
class="ak.webcontrol.core.model.MailAliasDestination" |
/> |
</bag> |
|
<!-- |
To add non XDoclet property mappings, create a file named |
hibernate-properties-MailAlias.xml |
containing the additional properties and place it in your merge dir. |
--> |
|
</class> |
|
</hibernate-mapping> |