given the following model example:
@Entity
@Table(name="tierenforcers")
public class TierEnforcer extends Model {
public BigInteger maxStorage; // expressed in B
}
How can I map a BigInteger in my yml file? If I do something like:
TierEnforcer(joeTE):
maxStorage: 5368709120
I don’t get an error on #play test startup, but a NULL value in my database (BigInteger created as decimal(19,2) in MySQL, but persisting values into this seems to be working fine with JPA otherwise)
Play! uses snakeyml under the hood. Look at their website for more info.
Looking at this yaml example you can try to create a BigInteger and then assign it to your instance
Hope it works 😉