Currently, we say you can do this:
@StaticNativeQuery("select * from books where isbn = ?")
@SqlResultSetMapping(entities =
@EntityResult(entityClass = Book.class,
fields = {@FieldResult(name = "isbn", column = "isbn_13"),
@FieldResult(name = "title", column = "title_en")}))
Book getBookWithIsbn(String isbn);
I think that's just unnecessary ceremony, when we can easily just let you write this:
@StaticNativeQuery("select * from books where isbn = ?")
@EntityResult(entityClass = Book.class,
fields = {@FieldResult(name = "isbn", column = "isbn_13"),
@FieldResult(name = "title", column = "title_en")})
Book getBookWithIsbn(String isbn);
All we need to do is promote the XxxResult annotations to METHOD and make them @Repeatable.
Currently, we say you can do this:
I think that's just unnecessary ceremony, when we can easily just let you write this:
All we need to do is promote the
XxxResultannotations toMETHODand make them@Repeatable.