Application.Entity.Db.Intervenant.dcm.xml 8.39 KB
Newer Older
gauthierb's avatar
gauthierb committed
1
<?xml version="1.0" encoding="utf-8"?>
2
3
4
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
5
    <entity name="Application\Entity\Db\Intervenant" table="INTERVENANT">
6
7
8
        <id name="id" type="integer" column="ID">
            <generator strategy="SEQUENCE"/>
        </id>
9
10
11
        <many-to-one field="annee" target-entity="Application\Entity\Db\Annee">
            <join-column name="ANNEE_ID" referenced-column-name="ID"/>
        </many-to-one>
12
        <field name="code" type="string" column="CODE" length="60" nullable="false"/>
13
        <field name="utilisateurCode" type="string" column="UTILISATEUR_CODE" length="60" nullable="false"/>
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

        <many-to-one field="structure" target-entity="Application\Entity\Db\Structure">
            <join-column name="STRUCTURE_ID" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="statut" target-entity="Application\Entity\Db\StatutIntervenant">
            <join-column name="STATUT_ID" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="grade" target-entity="Application\Entity\Db\Grade">
            <join-column name="GRADE_ID" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="discipline" target-entity="Application\Entity\Db\Discipline">
            <join-column name="DISCIPLINE_ID" referenced-column-name="ID"/>
        </many-to-one>

        <many-to-one field="civilite" target-entity="Application\Entity\Db\Civilite">
            <join-column name="CIVILITE_ID" referenced-column-name="ID"/>
        </many-to-one>
31
32
        <field name="nomUsuel" type="string" column="NOM_USUEL" length="60" nullable="false"/>
        <field name="prenom" type="string" column="PRENOM" length="60" nullable="false"/>
33
34
35
        <field name="dateNaissance" type="datetime" column="DATE_NAISSANCE" nullable="false"/>
        <field name="nomPatronymique" type="string" column="NOM_PATRONYMIQUE" length="60" nullable="true"/>

36
        <field name="communeNaissance" type="string" column="COMMUNE_NAISSANCE" length="60" nullable="true"/>
lecluse's avatar
#3192    
lecluse committed
37
        <many-to-one field="paysNaissance" target-entity="Application\Entity\Db\Pays">
38
            <join-column name="PAYS_NAISSANCE_ID" referenced-column-name="ID"/>
lecluse's avatar
#3192    
lecluse committed
39
40
        </many-to-one>
        <many-to-one field="depNaissance" target-entity="Application\Entity\Db\Departement">
41
42
43
44
            <join-column name="DEP_NAISSANCE_ID" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="paysNationalite" target-entity="Application\Entity\Db\Pays">
            <join-column name="PAYS_NATIONALITE_ID" referenced-column-name="ID"/>
lecluse's avatar
#3192    
lecluse committed
45
46
        </many-to-one>

47
48
49
50
51
52
53
54
55
        <field name="telPro" type="string" column="TEL_PRO" length="20" nullable="true"/>
        <field name="telPerso" type="string" column="TEL_PERSO" length="20" nullable="true"/>
        <field name="emailPro" type="string" column="EMAIL_PRO" length="255" nullable="true"/>
        <field name="emailPerso" type="string" column="EMAIL_Perso" length="255" nullable="true"/>

        <field name="addrPrecisions" type="string" column="ADDR_PRECISIONS" length="240" nullable="true"/>
        <field name="addrNumero" type="string" column="ADDR_NUMERO" length="4" nullable="true"/>
        <many-to-one field="addrNumeroCompl" target-entity="Application\Entity\Db\AdresseNumeroCompl">
            <join-column name="ADDR_NUMERO_COMPL_ID" referenced-column-name="ID"/>
56
        </many-to-one>
57
58
        <many-to-one field="addrVoirie" target-entity="Application\Entity\Db\Voirie">
            <join-column name="ADDR_VOIRIE_ID" referenced-column-name="ID"/>
59
        </many-to-one>
60
61
62
63
64
65
        <field name="addrVoie" type="string" column="ADDR_VOIE" length="60" nullable="true"/>
        <field name="addrLieuDit" type="string" column="ADDR_LIEU_DIT" length="60" nullable="true"/>
        <field name="addrCodePostal" type="string" column="ADDR_CODE_POSTAL" length="15" nullable="true"/>
        <field name="addrCommune" type="string" column="ADDR_COMMUNE" length="50" nullable="true"/>
        <many-to-one field="addrPays" target-entity="Application\Entity\Db\Pays">
            <join-column name="ADDR_PAYS_ID" referenced-column-name="ID"/>
66
        </many-to-one>
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

        <field name="numeroInsee" type="string" column="NUMERO_INSEE" length="13" nullable="true"/>
        <field name="numeroInseeProvisoire" type="boolean" column="NUMERO_INSEE_PROVISOIRE" nullable="true"/>

        <field name="IBAN" type="string" column="IBAN" length="255" nullable="true"/>
        <field name="BIC" type="string" column="BIC" length="255" nullable="true"/>
        <field name="ribHorsSepa" type="boolean" column="RIB_HORS_SEPA"/>

        <field name="autre1" type="string" column="AUTRE_1" length="1000" nullable="true"/>
        <field name="autre2" type="string" column="AUTRE_2" length="1000" nullable="true"/>
        <field name="autre3" type="string" column="AUTRE_3" length="1000" nullable="true"/>
        <field name="autre4" type="string" column="AUTRE_4" length="1000" nullable="true"/>
        <field name="autre5" type="string" column="AUTRE_5" length="1000" nullable="true"/>



        <field name="montantIndemniteFc" type="float" column="MONTANT_INDEMNITE_FC" nullable="true" />
        <field name="premierRecrutement" type="boolean" column="PREMIER_RECRUTEMENT" nullable="true"/>

        <many-to-one field="source" target-entity="UnicaenImport\Entity\Db\Source">
            <join-column name="SOURCE_ID" referenced-column-name="ID"/>
88
        </many-to-one>
89
90
91
92
93
94
95
        <field name="sourceCode" type="string" column="SOURCE_CODE" length="100" nullable="true"/>
        <field name="syncStatut" type="boolean" column="SYNC_STATUT" nullable="false"/>
        <field name="syncStructure" type="boolean" column="SYNC_STRUCTURE" nullable="false"/>

        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_CREATEUR_ID" referenced-column-name="ID"/>
96
        </many-to-one>
97
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
98
        <many-to-one field="histoModificateur" target-entity="Application\Entity\Db\Utilisateur">
99
            <join-column name="HISTO_MODIFICATEUR_ID" referenced-column-name="ID"/>
100
        </many-to-one>
101
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
102
        <many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
103
            <join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
104
        </many-to-one>
105

106
        <one-to-many field="affectation" target-entity="Application\Entity\Db\AffectationRecherche" mapped-by="intervenant"/>
107
108
109
        <one-to-many field="agrement" target-entity="Application\Entity\Db\Agrement" mapped-by="intervenant"/>
        <one-to-many field="contrat" target-entity="Application\Entity\Db\Contrat" mapped-by="intervenant"/>
        <one-to-many field="formuleResultat" target-entity="Application\Entity\Db\FormuleResultat" mapped-by="intervenant"/>
110
        <one-to-many field="histoService" target-entity="Application\Entity\Db\HistoIntervenantService" mapped-by="intervenant"/>
111
112
        <one-to-many field="miseEnPaiementIntervenantStructure" target-entity="Application\Entity\Db\MiseEnPaiementIntervenantStructure" mapped-by="intervenant"/>
        <one-to-many field="modificationServiceDu" target-entity="Application\Entity\Db\ModificationServiceDu" mapped-by="intervenant">
113
114
115
116
            <cascade>
                <cascade-persist/>
            </cascade>
        </one-to-many>
117
118
119
        <one-to-many field="pieceJointe" target-entity="Application\Entity\Db\PieceJointe" mapped-by="intervenant" fetch="EXTRA_LAZY"/>
        <one-to-many field="service" target-entity="Application\Entity\Db\Service" mapped-by="intervenant"/>
        <one-to-many field="serviceReferentiel" target-entity="Application\Entity\Db\ServiceReferentiel" mapped-by="intervenant">
120
121
122
123
            <cascade>
                <cascade-persist/>
            </cascade>
        </one-to-many>
124
        <one-to-many field="validation" target-entity="Application\Entity\Db\Validation" mapped-by="intervenant"/>
125
    </entity>
gauthierb's avatar
gauthierb committed
126
</doctrine-mapping>