All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bwaldvogel.mongo.entity.Account Maven / Gradle / Ivy

There is a newer version: 1.45.0
Show newest version
package de.bwaldvogel.mongo.entity;

import java.math.BigDecimal;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
@TypeAlias("account")
public class Account {

    @Id
    private ObjectId id;

    private BigDecimal total;

    protected Account() {
    }

    public Account(BigDecimal total) {
        this.total = total;
    }


    public BigDecimal getTotal() {
        return total;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy