<?xml version="1.0" encoding="utf-8"?>
<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">
  <entity name="Prerequisito" table="prerequisito">
    <id name="idCurso" type="bigint" column="id_curso">
      <generator strategy="SEQUENCE"/>
    </id>
    <field name="idCurso2" type="bigint" column="id_curso2" nullable="false"/>
    <many-to-one field="idCurso1" target-entity="Curso">
      <join-columns>
        <join-column name="id_curso1" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>
  </entity>
</doctrine-mapping>
