PHP Classes

File: example/mapping/Person.xml

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


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