You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope to support a code assist on Groovy language!!
I will prefer to create a mapper interface using groovy language. Groovy language is more readable on annotation.
e.g.)
packagecom.example.mapperimportcom.example.domain.Todoimportorg.apache.ibatis.annotations.Insertimportorg.apache.ibatis.annotations.Mapperimportorg.apache.ibatis.annotations.Optionsimportorg.apache.ibatis.annotations.Select@MapperinterfaceTodoMapper {
@Insert(''' INSERT INTO todo (title, details, finished) VALUES (#{title}, #{details}, #{finished})''')
@Options(useGeneratedKeys=true)
voidinsert(Todotodo);
@Select(''' SELECT id, title, details, finished FROM todo WHERE id = #{id}''')
Todoselect(intid);
}
It seemed to be possible because groovy-eclipse plugin provides an extension point for this enhancement.
But it turned out that there is no annotation information attached to the Java model provided by the plugin.
There is even a test case ensuring this behavior.
The comment of the test case reads:
Only marker annotations or SingleMember annotations whose member is a class literal are copied over.
I hope to support a code assist on Groovy language!!
I will prefer to create a mapper interface using groovy language. Groovy language is more readable on annotation.
e.g.)
For Demo application, please see here.
What do you think ?
The text was updated successfully, but these errors were encountered: