Skip to content

List of ProfiteerEntity in base class leads to imperfection #94

Description

@lroellin

The CompensationEntity inherits from the TransactionEntity class. In that base class, we specified the Profiteers as a list of Profiteers, since that's the wider case and it fits a Compensation and an Expense.

This leads to this imperfection however: (link below)

public ProfiteerEntity getProfiteer() {
    return getProfiteers().get(0);
}

public ProfiteerEntity getProfiteer() {
return getProfiteers().get(0);
}

It would be nice to move the ProfiteerEntity from the base classes to the concrete classes. We can have a list of ProfiteerEntitites in Expenses and a single ProfiteerEntity in Compensations.

@McDonnough has tried that but hasn't succeeded so far due to time constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions