JDBC Template
1. Basic JDBC Template public Integer getTotalCount() { return jdbcTemplate.queryForObject("SELECT COUNT(*) FROM EMPLOYEE", Integer.class); } public Integer modifyEmployeeInformation() { return jdbcTemplate.update("INSERT INTO EMPLOYEE VALUES (?, ?, ?, ?)", 5, "Bill", "Gates", "USA"); } 2. Named Parameter JDBC Template - use preparedStatement public SomeDto getSome(Long id) { String query = "SEL..
Programming/Spring
2019. 5. 5. 10:37
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- SmartLifecycle
- Discriminate Mapping
- Sprint RetryTemplate
- Akka
- Charles proxy
- Spring JDBC Template
- Spring Registrar
- Spring
- JPA Criteria
- Property
- docker
- Criteria
- RetryTemplate
- Query DSL
- Registrar
- scikit-learn
- Typesafe Config
- java Equals
- 복합키 Mapping
- java generic
- JPA
- java EqualsAndHashCode
- Embedded Mapping
- Mapping
- @Primary
- DI
- spring spel
- Join Table
- Embeddable Mapping
- guava
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함