Login   Register  
PHP Classes
elePHPant
Icontem

File: example/mapping/Person.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hugo Ferreira da Silva  >  Lumine  >  example/mapping/Person.xml  >  Download  
File: example/mapping/Person.xml
Role: Example script
Content type: text/plain
Description: XML map for "persons" table
Class: Lumine
Object-relational mapping tool
Author: By
Last change:
Date: 9 years ago
Size: 528 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="iso-8859-1"?>
<lumine-map table="persons" class="com.domain.classes.Person">
    <id name="idperson" column="idperson">
        <generator class="default" />
    </id>
    <property name="name" column="name" type="text" not-null="true"/>
    <property name="age" column="age" type="int(11)"/>
    <property name="eyecolor" column="eyecolor" type="varchar(10)"/>
    <one-to-many name="cars" lazy="true">
        <class name="com.domain.classes.Car" linkOn="idperson" column="idperson" />
    </one-to-many>
</lumine-map>