@@ -0,0 +1,1212 @@
+package io.teiler.server.persistence.entities;%0A%0Aimport io.teiler.server.dto.Debt;%0Aimport io.teiler.server.persistence.repositories.PersonRepository;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0A%0A/**%0A * Entity representing a virtual debt entry.%0A *%0A * @author dthoma%0A */%0A@Entity%0Apublic class DebtEntity %7B%0A%0A    @Column(name = %22person%22)%0A    private Integer personID;%0A%0A    @Column(name = %22balance%22)%0A    private Integer balance;%0A%0A    public DebtEntity() %7B /* intentionally empty */ %7D%0A%0A    /**%0A     * Converts a %7B@link Debt%7D to a %7B@link DebtEntity%7D%0A     *%0A     * @param debt%0A     */%0A    public DebtEntity(Debt debt) %7B%0A        this.personID = debt.getPerson();%0A        this.balance = debt.getBalance();%0A    %7D%0A%0A    public Debt toDebt() %7B%0A        return new Debt(this.personID, this.balance);%0A    %7D%0A%0A    public Integer getPersonID() %7B%0A        return personID;%0A    %7D%0A%0A    public void setPersonID(Integer personID) %7B%0A        this.personID = personID;%0A    %7D%0A%0A    public Integer getBalance() %7B%0A        return balance;%0A    %7D%0A%0A    public void setBalance(Integer balance) %7B%0A        this.balance = balance;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return this.toDebt().toString();%0A    %7D%0A%7D%0A

add debt entity