This document provides the API references for the entities in the database.
An entity is any company or institution that is enrolled in the database that are related trough
All the fields of this model are directly retrieved from Base. They are:
The name of the entity.
The fiscal identification number of the entity.
The country it is registered. It may be “null” when there is no such information.
It has the following getters:
Returns the url of this entity on this website.
And the following setters:
Computes two aggregations and stores them in its EntityData:
- the total value in € of the contracts where it is a contractor
- the total value in € of the contracts where it is contracted
This method is used when the crawler updates new contracts.
Data of an entity that is not retrieved from Base, i.e, it is computed with existing data. It is a kind of cache, but more persistent. This may become a proper cache in future.
It has a OneToOne relationship with
As the following attributes:
The money, in cents, the entity earned so far.
The money, in cents, the entity expended so far.