Created
November 4, 2017 13:21
-
-
Save nakamura-to/3826edfdf6aefe6de62146ed969c0d9b to your computer and use it in GitHub Desktop.
Doma2でprivateメソッド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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