<?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="hibernate.connection.driver_class">com.mysql.cj.jdbc.Driver</property>
        <property name="hibernate.connection.url">${hibernate.connection.url}</property>
        <property name="hibernate.connection.username">${hibernate.connection.username}</property>
        <property name="hibernate.connection.password">${hibernate.connection.password}</property>
        <property name="hibernate.c3p0.min_size">${hibernate.connection.min_size}</property>
        <property name="hibernate.c3p0.max_size">${hibernate.connection.max_size}</property>
        <property name="hibernate.c3p0.timeout">${hibernate.connection.timeout}</property>
        <property name="hibernate.c3p0.max_statements">${hibernate.connection.max_statements}</property>
        <property name="hibernate.c3p0.idle_test_period">3000</property>
        <property name="hibernate.show_sql">false</property>
        <property name="hibernate.format_sql">false</property>
        <property name="hibernate.enable_lazy_load_no_trans">true</property>
        <property name="hibernate.current_session_context_class">thread</property>
        <property name="hibernate.connection.noAccessToProcedureBodies">${hibernate.connection.noAccessToProcedureBodies}</property>
        <property name="hibernate.connection.useSSL">false</property>
        <!-- ERROR PACKAGE -->
        <mapping class="com.arrebol.apc.model.system.logs.ErrorAppLog"/>
        <mapping class="com.arrebol.apc.model.system.logs.Bitacora"/>
        <!-- CORE PACKAGE -->
        <mapping class="com.arrebol.apc.model.core.HumanResource"/>
        <mapping class="com.arrebol.apc.model.core.HumanResourceByOffice"/>
        <mapping class="com.arrebol.apc.model.core.Office"/>
        <mapping class="com.arrebol.apc.model.core.User"/>
        <mapping class="com.arrebol.apc.model.core.UserByOffice"/>
        <mapping class="com.arrebol.apc.model.core.Permission"/>
        <mapping class="com.arrebol.apc.model.core.UserByOfficeHasPermission"/>
        <!-- CATALOG PACKAGE -->
        <mapping class="com.arrebol.apc.model.catalog.RoleCtlg"/>
        <mapping class="com.arrebol.apc.model.catalog.RouteCtlg"/>
        <mapping class="com.arrebol.apc.model.catalog.People"/>
        <mapping class="com.arrebol.apc.model.catalog.HumanResourceHasRoute"/>
        <!-- LOAN PACKAGE -->
        <mapping class="com.arrebol.apc.model.loan.LoanType"/>
        <mapping class="com.arrebol.apc.model.loan.Loan"/>
        <mapping class="com.arrebol.apc.model.loan.LoanDetails"/>
        <mapping class="com.arrebol.apc.model.loan.LoanByUser"/>
        <mapping class="com.arrebol.apc.model.loan.LoanFeeNotification"/>
        <mapping class="com.arrebol.apc.model.loan.LoanByRenovation"/>
        <mapping class="com.arrebol.apc.model.loan.Delivery"/>
        <!-- MOBILE PACKAGE -->
        <mapping class="com.arrebol.apc.model.mobile.preference.UserMobilePreference"/>
        <mapping class="com.arrebol.apc.model.mobile.access.MobileUser"/>
        <!-- ADMIN PACKAGE -->
        <mapping class="com.arrebol.apc.model.admin.Transfer"/>
        <mapping class="com.arrebol.apc.model.admin.MoneyDaily"/>
        <mapping class="com.arrebol.apc.model.admin.ClosingDay"/>
        <mapping class="com.arrebol.apc.model.admin.OtherExpense"/>
        <mapping class="com.arrebol.apc.model.admin.Goal"/>
        <mapping class="com.arrebol.apc.model.admin.Advance"/>
        <mapping class="com.arrebol.apc.model.admin.Bonus"/>
        <mapping class="com.arrebol.apc.model.admin.ExpenseCompany"/>
        <mapping class="com.arrebol.apc.model.admin.StableGeneralBox"/>
        <mapping class="com.arrebol.apc.model.admin.StableSmallBox"/>
        <mapping class="com.arrebol.apc.model.admin.ClosingDayDetail"/>
        <mapping class="com.arrebol.apc.model.admin.LoanEmployee"/>
        <mapping class="com.arrebol.apc.model.admin.LoanEmployeeDetails"/>
        <mapping class="com.arrebol.apc.model.admin.EmployeeSaving"/>
        <!-- PAYROLL PACKAGE -->
        <mapping class="com.arrebol.apc.model.payroll.TotalExpectedPaymentDailyByUser"/>
        <mapping class="com.arrebol.apc.model.payroll.Payroll"/>
        <!-- VIEWS -->
        <mapping class="com.arrebol.apc.model.views.AdministrationPersonSerchView"/>
        <mapping class="com.arrebol.apc.model.views.LoanByUserView"/>
        <mapping class="com.arrebol.apc.model.views.LoanByUserOrderPreferenceView"/>
        <mapping class="com.arrebol.apc.model.views.PersonSearchView"/>
        <mapping class="com.arrebol.apc.model.views.PersonSearchDetailView"/>
        <mapping class="com.arrebol.apc.model.views.AvailableCustomersView"/>
        <mapping class="com.arrebol.apc.model.views.AvailableEndorsementsView"/>
        <mapping class="com.arrebol.apc.model.views.CashRegisterCurdateByUserView"/>
        <mapping class="com.arrebol.apc.model.views.LoanToDeliveryByCertifierView"/>
        <mapping class="com.arrebol.apc.model.views.ExchangeEnebledUsersView"/>
        <mapping class="com.arrebol.apc.model.views.TotalCashByCurdateView"/>
        <mapping class="com.arrebol.apc.model.views.PersonSearchHistoricalDetailsView"/>
        <mapping class="com.arrebol.apc.model.views.TotalClosingDayByCurdateView"/>
        <mapping class="com.arrebol.apc.model.views.TotalLoansByOfficeView"/>
        <mapping class="com.arrebol.apc.model.views.PaymentDetailFromUserByCurdateView"/>
        <mapping class="com.arrebol.apc.model.views.ClosingDailyDetailFromUserByCurdateView"/>
        <mapping class="com.arrebol.apc.model.views.LoanApprovedDetailView"/>
        <mapping class="com.arrebol.apc.model.views.GeneralBoxView"/>
        <mapping class="com.arrebol.apc.model.views.LoanByUserPaymentZeroView"/>
        <mapping class="com.arrebol.apc.model.views.AdvanceUserDailyView"/>
        <mapping class="com.arrebol.apc.model.views.CustomerWithoutRenovationView"/>
        <mapping class="com.arrebol.apc.model.views.AdvanceUserDailyDetail"/>
        <mapping class="com.arrebol.apc.model.views.TotalLoansApprovedByOfficeView"/>
        <mapping class="com.arrebol.apc.model.views.TotalCashByCurdateDashboardView"/>
        <mapping class="com.arrebol.apc.model.views.MoneyDailyByUserCertifier"/>
        <mapping class="com.arrebol.apc.model.views.InformationLoanWeekView"/>
        <mapping class="com.arrebol.apc.model.views.LoanDiferencesByUserLastWeekView"/>
        <mapping class="com.arrebol.apc.model.views.InformationLoanLastWeekView"/>
        <mapping class="com.arrebol.apc.model.views.ColocationWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.ColocationLastWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.SubtotalLastWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.SubtotalWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.ResumenInOutWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.ResumenInOutLastWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.CurrentCustomerByLoanView"/>
        <mapping class="com.arrebol.apc.model.views.AvailablesOwnersView"/>
        <mapping class="com.arrebol.apc.model.views.CobranzaLastWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.CobranzaWeekByUserView"/>
        <mapping class="com.arrebol.apc.model.views.ResumenTotalLastWeekView"/>
        <mapping class="com.arrebol.apc.model.views.ResumenTotalWeekView"/>
        <mapping class="com.arrebol.apc.model.views.ResumeNewCustomerLastWeekView"/>
        <mapping class="com.arrebol.apc.model.views.ResumeNewCustomerWeekView"/>
        <mapping class="com.arrebol.apc.model.views.HistoryLoanView"/>
        <mapping class="com.arrebol.apc.model.views.FeesView"/>
        <mapping class="com.arrebol.apc.model.views.StatsClosingDayView"/>
        <mapping class="com.arrebol.apc.model.views.StatsOpeningFeesView"/>
        <mapping class="com.arrebol.apc.model.views.StatsPaymentView"/>
        <mapping class="com.arrebol.apc.model.views.StatsPaymentRouteView"/>
        <mapping class="com.arrebol.apc.model.views.StatsPaymentRenovationView"/>
        <mapping class="com.arrebol.apc.model.views.StatsPayrollView"/>
        <mapping class="com.arrebol.apc.model.views.StatsDepositsView"/>
        <mapping class="com.arrebol.apc.model.views.StatsZeroPaymentsView"/>
        <mapping class="com.arrebol.apc.model.views.StatsEmployeeSavingView"/>
        <mapping class="com.arrebol.apc.model.views.StatsAdvancesView"/>
        <mapping class="com.arrebol.apc.model.views.StatsGasolineView"/>
        <mapping class="com.arrebol.apc.model.views.StatsSummaryView"/>
        <mapping class="com.arrebol.apc.model.views.LoanDetailZeroView"/>
        <mapping class="com.arrebol.apc.model.views.LoanFinishedView"/>
        <mapping class="com.arrebol.apc.model.views.LoanEmployeeView"/>
        <mapping class="com.arrebol.apc.model.views.LoanEmployeeAllDataView"/>
        <mapping class="com.arrebol.apc.model.views.LoanEmployeeDetailAllDataView"/>
        <mapping class="com.arrebol.apc.model.views.CustomerView"/>
        <mapping class="com.arrebol.apc.model.views.TransferView"/>
        <mapping class="com.arrebol.apc.model.views.EnabledUserDetailsView"/>
        <mapping class="com.arrebol.apc.model.views.TransferInPendingStatusView"/>
        <mapping class="com.arrebol.apc.model.views.LoanInPendingStatusToDeliveryView"/>
        <mapping class="com.arrebol.apc.model.views.LoanRenovationDeliveryWeeklyView"/>
        <mapping class="com.arrebol.apc.model.catalog.Vehicle"/>
        <!-- REPORTS -->
        <mapping class="com.arrebol.apc.model.reports.UserWeekReport"/>
        <!-- GASOLINE -->
        <mapping class="com.arrebol.apc.model.gasoline.Gasoline"/>
        <!-- QUERIES -->
        <mapping resource="com/arrebol/apc/model/queries/core/user.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/user.by.office.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/office.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/user.by.office.has.permission.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/human.resource.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/permission.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/core/mobile.user.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.by.user.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.type.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.by.renovation.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/delivery.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.details.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/catalog/queries/people.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/catalog/queries/roles.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/catalog/queries/routes.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.fee.notification.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/preference/user.mobile.preference.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/loan.by.user.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/loan.by.user.order.preference.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/person.search.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/person.search.detail.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/available.customers.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/available.endorsements.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/cash.register.curdate.by.user.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/loan.to.delivery.by.ciertifier.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/exchange.enebled.users.view.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/total.cash.by.curdate.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/person.search.historical.details.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/loan.approved.detail.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/transfer.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/money.daily.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/closing_day.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/closing.day.detail.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/other.expense.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/goal.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/advance.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/bonus.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/expense.company.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/stable.general.box.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/stable.small.box.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/admin/bitacora.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/payroll/payroll.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/payroll/total.expected.payment.daily.by.user.queries.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/administration.person.serch.view.xml" />
        <mapping resource="com/arrebol/apc/model/queries/view/total.loans.by.office.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/total.closing.day.by.curdate.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/payment.detail.from.user.by.curdate.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/total.closing.daily.detail.from.user.by.curdate.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/general.box.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/loan.by.user.payment.zero.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/advance.user.daily.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/customer.without.renovation.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/advance.user.daily.detail.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/total.loans.approved.by.office.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/money.daily.by.user.certifier.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/loan.renovation.devilery.weekly.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/information.loan.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/information.loan.last.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/resumen.total.last.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/resumen.new.customer.last.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/resumen.new.customer.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/resumen.total.week.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.fees.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.closing.day.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.opening.fees.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.payment.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.payment.route.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.payment.renovation.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.payroll.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.vehicle.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.deposits.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.zero.payments.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.employee.saving.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.advances.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/stats.gasoline.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/loan.employee.view.hbm.xml"/>
        <mapping resource="com/arrebol/apc/model/queries/view/loan.employee.detail.all.data.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/view/enabled.user.details.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/view/transfer.in.pending.status.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/loan.in.pending.status.to.delivery.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/loan/loan.employee.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/current.customer.by.loan.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/mobile/views/availables.owners.view.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/mobile/reports/user.week.report.hbm.xml" />
        <mapping resource="com/arrebol/apc/model/queries/mobile/gasoline/gasoline.hbm.xml" />
        <mapping class="com.arrebol.apc.test.ArrebolTest"/>
    </session-factory>
</hibernate-configuration>