The wishfull @ReuseAnnotation would allow one to specify a method and which
annotations to reuse.
Example
@Select("select * from x where id = #{id}")
@Results({
@Result(),
@Result(),
@Result(),
@Result(),
@Result()
})
Object getById(Long id)
@Select("select * from x where date < now()")
@ReuseAnnotation( value = "getById", results = true, args = true,
discriminators = true)
Object getFromThePast(Date date)
Makes Annotated results (almost) as reusable as xml resultmaps.
Original issue reported on code.google.com by jaron.schut@gmail.com on 9 Oct 2010 at 6:57
Original issue reported on code.google.com by
jaron.schut@gmail.com
on 9 Oct 2010 at 6:57