<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.navalplanner.business.workreports.entities" default-access="field">

<!-- WorkReportType -->
<class name="WorkReportType" table="WORK_REPORT_TYPE">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>

    <property name="name"/>

    <set name="criterionTypes" table="CRITERION_TYPE_WORK_REPORT_TYPE" inverse="false">
        <key column="WORK_REPORT_TYPE_ID" not-null="false" />
        <many-to-many class="org.navalplanner.business.resources.entities.CriterionType" column="CRITERION_TYPE_ID"/>
    </set>
</class>

<!-- WorkReport -->
<class name="WorkReport" table="WORK_REPORT">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>

    <property name="date"/>
    <property name="place"/>
    <property name="responsible"/>

    <many-to-one name="workReportType" class="WorkReportType" column="WORK_REPORT_TYPE_ID" not-null="true"/>

    <set name="workReportLines" cascade="all" inverse="false">
        <key column="WORK_REPORT_ID"/>
        <one-to-many class="WorkReportLine"/>
    </set>
</class>

<!-- WorkReportLine -->
<class name="WorkReportLine" table="WORK_REPORT_LINE">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>
<commit_msg> ItEr19S10CUIntroducionPartesTraballoManualmenteItEr18S11: [Fix bug] On pressing WorkReportLine remove button, deletes it from DB<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.navalplanner.business.workreports.entities" default-access="field">

<!-- WorkReportType -->
<class name="WorkReportType" table="WORK_REPORT_TYPE">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>

    <property name="name"/>

    <set name="criterionTypes" table="CRITERION_TYPE_WORK_REPORT_TYPE" inverse="false">
        <key column="WORK_REPORT_TYPE_ID" not-null="false" />
        <many-to-many class="org.navalplanner.business.resources.entities.CriterionType" column="CRITERION_TYPE_ID"/>
    </set>
</class>

<!-- WorkReport -->
<class name="WorkReport" table="WORK_REPORT">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>

    <property name="date"/>
    <property name="place"/>
    <property name="responsible"/>

    <many-to-one name="workReportType" class="WorkReportType" column="WORK_REPORT_TYPE_ID" not-null="true"/>

    <set name="workReportLines" cascade="all-delete-orphan" inverse="false">
        <key column="WORK_REPORT_ID"/>
        <one-to-many class="WorkReportLine"/>
    </set>
</class>

<!-- WorkReportLine -->
<class name="WorkReportLine" table="WORK_REPORT_LINE">
    <id name="id" type="long">
        <generator class="native"/>
    </id>
    <version name="version" type="long"/>

{'fraction_non_alphanumeric': 0.17972070431086826, 'fraction_numerical': 0.006678809957498482, 'mean_word_length': 4.305958132045088, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6894948', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1042, 'n_words': 188}