Skip to content

Commit

Permalink
Fixes test entity so existing tests do not break
Browse files Browse the repository at this point in the history
Fixes: SIRI-1041
  • Loading branch information
mkeckmkeck committed Dec 18, 2024
1 parent 5ec3512 commit a55f163
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package sirius.db.mongo.properties;

import sirius.db.mixing.Mapping;
import sirius.db.mixing.annotations.NullAllowed;
import sirius.db.mixing.annotations.Numeric;
import sirius.db.mongo.MongoEntity;
import sirius.kernel.commons.Amount;
Expand All @@ -21,6 +22,7 @@ public class MongoAmountEntity extends MongoEntity {
private Amount testAmount = Amount.NOTHING;

public static final Mapping SCALED_AMOUNT = Mapping.named("scaledAmount");
@NullAllowed
@Numeric(precision = 20, scale = AMOUNT_SCALE)
private Amount scaledAmount = Amount.NOTHING;

Expand Down

0 comments on commit a55f163

Please sign in to comment.