Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of ProfiteerEntity in base class leads to imperfection #94

Open
lroellin opened this issue Jun 12, 2017 · 0 comments
Open

List of ProfiteerEntity in base class leads to imperfection #94

lroellin opened this issue Jun 12, 2017 · 0 comments

Comments

@lroellin
Copy link
Member

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.

@lroellin lroellin changed the title ProfiteerEntity List of ProfiteerEntity in base class leads to imperfection Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant