Skip to content

MongoDbo

alexstaeding edited this page Feb 26, 2020 · 2 revisions

The final result is:

@Entity("members")
public class MongoMember extends MongoDbo implements Member<ObjectId> {

    private UUID userUUID;
    private int kills;
    private int deaths;

    @Override
    public UUID getUserUUID() {
        return userUUID;
    }

    @Override
    public void setUserUUID(UUID userUUID) {
        this.userUUID = userUUID;
    }

    @Override
    public int getKills() {
        return kills;
    }

    @Override
    public int setKills(int kills) {
        this.kills = kills;
    }

    @Override
    public int getDeaths() {
        return deaths;
    }

    @Override
    public int setDeaths(int deaths) {
        this.deaths = deaths;
    }
}