Login   Register  
PHP Classes
elePHPant
Icontem

File: example/mapping/Car.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/Car.xml  >  Download  
File: example/mapping/Car.xml
Role: Example script
Content type: text/plain
Description: XML map for "cars" table
Class: Lumine
Object-relational mapping tool
Author: By
Last change:
Date: 8 years ago
Size: 474 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="iso-8859-1"?>
<lumine-map table="cars" class="com.domain.classes.Car">
    <id name="idcar" column="idcar">
        <generator class="default" />
    </id>
    <property name="color" column="color" type="char(20)"/>
    <property name="model" column="model" type="char(40)"/>
    <many-to-one name="person">
        <class name="com.domain.classes.Person" column="idperson" linkOn="idperson" ondelete="cascade" onupdate="cascade"/>
    </many-to-one>
</lumine-map>