Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class H2Dao {
- private NamedParameterJdbcTemplate t;
- @Autowired
- public H2Dao(@Qualifier("H2JdbcTemplate") NamedParameterJdbcTemplate t) {
- this.t=t;
- }
- }
- <jdbc:embedded-database id="h2DataSource" type="H2">
- <jdbc:script location="classpath:db/sql/h2.init.sql" />
- </jdbc:embedded-database>
- <bean id="H2JdbcTemplate" class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate">
- <constructor-arg ref="h2DataSource" name="dataSource" />
- </bean>
- CREATE ALIAS ROWNUM_OVER FOR "com.xx.xxxx.h2.H2Function.rowNumOver";
- CREATE ALIAS DBO_UFUN_ADDDATETIME FOR "com.xx.xxxx.h2.H2Function.addDateTime";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement