Making use of the @BindBean annotation. SQL files reference fields by their name, and if one of these public facing field names is changed then the sql will need updated. However IDEs don't understand the context of the sql bound fields, so will not automatically change the sql during rename. To save from future error I would like to avoid this.
Below is an example of how BindBean is being used is any alternative possible . Which will not involve single binds to each of the objects values.
@SqlUpdate("create-something/createSomething")
Long createSomething(
@Bind("somethingId") Long somethingId,
@BindBean("somethingElse") SomethingElse somethingElse
);