Generate all setXXX calls of a POJO in Eclipse?

前端 未结 5 1449
感动是毒
感动是毒 2021-01-31 03:36

Im currently doing a lot of testing with JPA entities, where i have to keep calling the setter methods on the entity that looks something like this :

myEntity.se         


        
5条回答
  •  清歌不尽
    2021-01-31 04:37

    I have found the answer (I was always searching for this thing)...

    The easiest way is to expand the class members in the "Package Explorer", sort them by name, multi-select all the setters, and then you have in the clipboard all the method names...

    ;-)

提交回复
热议问题