List of usage examples for org.joda.time YearMonth toInterval
public Interval toInterval()
From source file:com.excilys.ebi.bank.dao.impl.OperationDaoImpl.java
License:Apache License
private BooleanExpression addOperationYearMonthExpression(BooleanExpression predicate, QOperation operation, YearMonth yearMonth) { if (yearMonth == null) return predicate; else {// ww w . j a v a 2 s .co m Interval range = yearMonth.toInterval(); return predicate.and(operation.date.between(range.getStart(), range.getEnd())); } }