mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-22 00:52:16 -05:00
Forgot to generated Presto tests
This commit is contained in:
parent
9261ee216a
commit
ebccf0a0e2
@ -196,9 +196,18 @@ public interface PrestoPersonDAO extends PersonDAO {
|
|||||||
@JdbcMapper.SQL("SELECT first_name, last_name FROM person WHERE person_no = {personNo}")
|
@JdbcMapper.SQL("SELECT first_name, last_name FROM person WHERE person_no = {personNo}")
|
||||||
EnumPerson getEnumPerson(long personNo) throws SQLException;
|
EnumPerson getEnumPerson(long personNo) throws SQLException;
|
||||||
|
|
||||||
|
@JdbcMapper.SQL("SELECT first_name FROM person WHERE person_no = {personNo}")
|
||||||
|
EnumPerson getEnumPersonConstructor(long personNo) throws SQLException;
|
||||||
|
|
||||||
@JdbcMapper.SQL("SELECT first_name FROM person WHERE person_no = {personNo}")
|
@JdbcMapper.SQL("SELECT first_name FROM person WHERE person_no = {personNo}")
|
||||||
FirstName getFirstNameEnum(long personNo) throws SQLException;
|
FirstName getFirstNameEnum(long personNo) throws SQLException;
|
||||||
|
|
||||||
|
@JdbcMapper.SQL("SELECT str_val as first_name, str_val as last_name FROM val WHERE val_no = 4")
|
||||||
|
EnumPerson getEnumPersonNull() throws SQLException;
|
||||||
|
|
||||||
|
@JdbcMapper.SQL("SELECT str_val FROM val WHERE val_no = 4")
|
||||||
|
FirstName getEnumNull() throws SQLException;
|
||||||
|
|
||||||
//IFJAVA8_START
|
//IFJAVA8_START
|
||||||
|
|
||||||
@JdbcMapper.SQL("SELECT birth_date FROM person WHERE person_no = {personNo}")
|
@JdbcMapper.SQL("SELECT birth_date FROM person WHERE person_no = {personNo}")
|
||||||
@ -237,6 +246,11 @@ public interface PrestoPersonDAO extends PersonDAO {
|
|||||||
@JdbcMapper.SQL("SELECT str_val FROM val WHERE val_no = {valNo}")
|
@JdbcMapper.SQL("SELECT str_val FROM val WHERE val_no = {valNo}")
|
||||||
ZoneOffset getZoneOffsetStr(long valNo);
|
ZoneOffset getZoneOffsetStr(long valNo);
|
||||||
|
|
||||||
|
@JdbcMapper.RunInTransaction
|
||||||
|
default Person getPersonInTransaction(final String lastName) throws SQLException {
|
||||||
|
return getPerson(getPersonNo(lastName));
|
||||||
|
}
|
||||||
|
|
||||||
//IFJAVA8_END
|
//IFJAVA8_END
|
||||||
|
|
||||||
// test blob
|
// test blob
|
||||||
|
Loading…
Reference in New Issue
Block a user