如何在 Hibernate 中获得大于记录的条件查询?

How to get a greater than record in Hibernate - Criteria Queries?

Amount 值是 Big Decimal 类型,逻辑应为 _customerPayeeTransaction.getAmount() > 10 000.00

如何更改以下条件以匹配上述逻辑?

Criterion amount = Restrictions.gt("cpt.amount", _customerPayeeTransaction.getAmount());

请帮助我。

If u want to add filter amount lower than 10 000 : 

Criterion amount = Restrictions.lt("cpt.amount", new BigDecimal("10000.00"));