PHP Classes

File: example/mapping/Car.xml

Recommend this page to a friend!
  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: 18 years ago
Size: 474 bytes


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" />
    <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"/>