forked from onPHP/onphp-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Ru:criteria:metaexample
AlexeyDsov edited this page Apr 18, 2011
·
4 revisions
<?xml version="1.0"?>
<!DOCTYPE metaconfiguration SYSTEM "meta.dtd">
<metaconfiguration>
<classes>
<class name="Actor">
<properties>
<identifier type="Integer" name="id" column="id" />
<property name="name" type="String" size="128" required="true" />
<property name="country" type="String" size="32"/>
<property name="childs" type="Integer" required="true" />
<property name="roles" type="Role" relation="OneToMany" />
<property
name="bestFilm"
column="best_film_id"
type="Actor"
relation="OneToOne"
fetch="lazy"
/>
</properties>
<pattern name="StraightMapping" />
</class>
<class name="Film">
<properties>
<identifier type="Integer" name="id" column="id" />
<property name="name" type="String" size="128" required="true" />
<property name="year" type="Integer" />
<property name="description" type="String" />
<property name="roles" type="Role" relation="OneToMany" />
</properties>
<pattern name="StraightMapping" />
</class>
<class name="Role">
<properties>
<identifier type="Integer" name="id" column="id" />
<property name="film" type="Film" relation="OneToOne" fetch="lazy" />
<property name="actor" type="Actor" relation="OneToOne" fetch="lazy" />
<property name="description" type="String" />
</properties>
<pattern name="StraightMapping" />
</class>
</classes>
</metaconfiguration>