Skip to content

Instantly share code, notes, and snippets.

@nakamura-to
Created November 4, 2017 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nakamura-to/3826edfdf6aefe6de62146ed969c0d9b to your computer and use it in GitHub Desktop.
Save nakamura-to/3826edfdf6aefe6de62146ed969c0d9b to your computer and use it in GitHub Desktop.
Doma2でprivateメソッド
@Dao
public interface EmployeeDao {
default List<Employee> selectWithBuilder() {
return selectWithBuilder_private();
}
private List<Employee> selectWithBuilder_private() {
Config config = Config.get(this);
SelectBuilder builder = SelectBuilder.newInstance(config);
builder.sql("select * from EMPLOYEE");
return builder.getEntityResultList(Employee.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment