de.bwaldvogel.mongo.entity.Account Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongo-java-server-test-common Show documentation
Show all versions of mongo-java-server-test-common Show documentation
Fake implementation of MongoDB in Java that speaks the wire protocol
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