FastQuery 1.0.12 发布了,更新如下: 通过注解方式简化动态条件查询: 1 2 3 4 5 6 7 8 9 10 | @Query ( "select no, name, sex from Student #{#where} order by age desc" )
@Condition ( "no like ?1" )
@Condition ( "and name like ?2" )
@Condition (value = "and age > ?3" ,ignoreNull= false )
@Condition ( "or dept in(?4,?5,?6)" )
@Condition ( "and name not like ?7" )
@Condition ( "or age between ?8 and ?9" )
Student[] findAllStudent(... args ...);
|
详细文档请参阅: https://git.oschina.net/xixifeng.com/fastquery https://github.com/xixifeng/fastquery 地球人都知道,开源中国秉承自由、开放、分享的精神,本项目每次升级之后,代码和文档手册都会在第一时间完全开源,以供大家查阅、批评、指正。笔者技术水平有限,bug或不周之处在所难免,所以,遇到有问题或更好的建议时,还请大家通过码云issue来向我们反馈。 |