Introduction
Development
Core
Entity Definitions
The PollAnswerEntityDefinition extends the AbstractEntityDefinition and the AbstractNameableEntityDefinition:

Via the respective getter-setter pairs, the following information can be retrieved/stored in the database:
Property | Description |
---|---|
question |
stores the poll’s question, an instance of |
votes |
stores a set of the poll’s votes, instances of |
The PollQuestionEntityDefinition extends the AbstractEntityDefinition, the AbstractDescriptionableEntityDefinition and the AbstractNameableEntityDefinition:

Via the respective getter-setter pairs, the following information can be retrieved/stored in the database:
Property | Description |
---|---|
answers |
stores a set of the poll’s answers, instances of |
multiSelect |
stores information if the poll’s answers are multi-selection or not |
The PollVoteEntityDefinition extends the AbstractEntityDefinition:

The defined property here is answers - it stores the poll’s answers, instances of PollAnswerEntityDefinition
The PollWidgetEntityDefinition extends the WidgetEntityDefinition. The WidgetEntityDefinition
relies further on the extended AbstractEntityDefinition, AbstractActivatableEntityDefinition, AbstractCatalogableEntityDefinition, AbstractCmsEntityDefinition and AbstractFilterableEntityDefinition:

The defined property here is question. It stores the poll’s question - an instance of PollQuestionEntityDefinition
.
Spring Data JPA Repositories
The PollAnswerRepository extends the BaseEntityRepository:

This is the corresponding Spring Data JPA repository for the PollAnswerEntityDefinition
.
The PollQuestionRepository extends the BaseEntityRepository :

This is the corresponding Spring Data JPA repository for the PollQuestionEntityDefinition
.
The PollVoteRepository extends the BaseEntityRepository:

This is the corresponding Spring Data JPA repository for the PollVoteEntityDefinition
.
The PollWidgetRepository extends the ActivatableRepository and the BaseEntityRepository:
