Skip to content

Entities shouldn't depend on database? #5

@rongi

Description

@rongi

Your entities looks like database object, they have table names, database ids, etc. Aren't entities supposed to be most abstract type of data, not dependent in any way on your persistence solution?

http://cleancodejava.com/uncle-bob-payroll-case-study-full-implementation/

"Entities are not the same as JPA Entities, they are high level business rules, policies, and should be independent from any other concerns."

It looks like entities here are JPA Entities.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions