<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
<service-builder package-path= "it.tref.portos.calendar.appointments" >
<author > 3F Consulting</author>
<namespace > portos_calendar_appointments</namespace>
<entity name= "Funzionario" local-service= "true" remote-service= "true" uuid= "true" >
<!-- PK fields -->
<column name= "funzionarioId" type= "long" primary= "true" > </column>
<!-- Audit fields -->
<column name= "companyId" type= "long" > </column>
<column name= "userId" type= "long" > </column>
<column name= "userName" type= "String" > </column>
<column name= "createDate" type= "Date" > </column>
<column name= "modifiedDate" type= "Date" > </column>
<column name= "groupId" type= "long" > </column>
<!-- Other fields -->
<column name= "nome" type= "String" > </column>
<column name= "cognome" type= "String" > </column>
<column name= "presidio" type= "String" > </column>
<column name= "tipologia" type= "String" > </column>
<!-- Finder -->
<finder return-type= "Funzionario" name= "Funzionario" >
<finder-column name= "funzionarioId" > </finder-column>
</finder>
<finder return-type= "Collection" name= "Presidio" >
<finder-column name= "presidio" > </finder-column>
</finder>
</entity>
<entity name= "Professionista" local-service= "true" remote-service= "true" uuid= "true" >
<!-- PK fields -->
<column name= "professionistaId" type= "long" primary= "true" > </column>
<!-- Audit fields -->
<column name= "companyId" type= "long" > </column>
<column name= "userId" type= "long" > </column>
<column name= "userName" type= "String" > </column>
<column name= "createDate" type= "Date" > </column>
<column name= "modifiedDate" type= "Date" > </column>
<column name= "groupId" type= "long" > </column>
<!-- Other fields -->
<column name= "nome" type= "String" > </column>
<column name= "cognome" type= "String" > </column>
</entity>
<entity name= "Disponibilita" local-service= "true" remote-service= "true" uuid= "true" >
<!-- PK fields -->
<column name= "disponibilitaId" type= "long" primary= "true" > </column>
<!-- Audit fields -->
<column name= "companyId" type= "long" > </column>
<column name= "userId" type= "long" > </column>
<column name= "userName" type= "String" > </column>
<column name= "createDate" type= "Date" > </column>
<column name= "modifiedDate" type= "Date" > </column>
<column name= "groupId" type= "long" > </column>
<!-- Other fields -->
<column name= "funzionarioId" type= "long" > </column>
<column name= "startDate" type= "Date" > </column>
<column name= "endDate" type= "Date" > </column>
<column name= "exactDate" type= "String" > </column>
<column name= "presidio" type= "long" > </column>
<column name= "disponibile" type= "boolean" > </column>
</entity>
<entity name= "Prenotazione" local-service= "true" remote-service= "true" uuid= "true" >
<!-- PK fields -->
<column name= "prenotazioneId" type= "long" primary= "true" > </column>
<!-- Audit fields -->
<column name= "companyId" type= "long" > </column>
<column name= "userId" type= "long" > </column>
<column name= "userName" type= "String" > </column>
<column name= "createDate" type= "Date" > </column>
<column name= "modifiedDate" type= "Date" > </column>
<column name= "groupId" type= "long" > </column>
<!-- Other fields -->
<column name= "funzionarioId" type= "long" > </column>
<column name= "professionistaId" type= "long" > </column>
<column name= "startDate" type= "Date" > </column>
<column name= "endDate" type= "Date" > </column>
<column name= "descLong" type= "String" > </column>
<!-- Product Backlog Item 32934 -->
<column name= "telefono" type= "String" > </column>
<column name= "email" type= "String" > </column>
<!-- Finder -->
<finder return-type= "Prenotazione" name= "prenotazione" >
<finder-column name= "prenotazioneId" > </finder-column>
</finder>
<finder return-type= "Collection" name= "Funzionario_StartDate" >
<finder-column name= "funzionarioId" > </finder-column>
<finder-column name= "startDate" > </finder-column>
</finder>
<finder return-type= "Collection" name= "StartDate" >
<finder-column name= "startDate" > </finder-column>
</finder>
</entity>
<exceptions >
<exception > DuplicateFunzionario</exception>
<exception > DuplicateProfessionista</exception>
<exception > DuplicatePrenotazione</exception>
<exception > SlotNotAvailable</exception>
</exceptions>
</service-builder>