Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='UTF-8' ?>
- <!DOCTYPE configuration
- PUBLIC '-//mybatis.org//DTD Config 3.0//EN'
- 'http://mybatis.org/dtd/mybatis-3-config.dtd'>
- <configuration>
- <!--<typeAliases>-->
- <!--<typeAlias alias = "class_alias_Name" type = "absolute_clas_Name"/>-->
- <!--</typeAliases>-->
- <environments default = "development">
- <environment id = "development">
- <transactionManager type = "JDBC"/>
- <dataSource type = "POOLED">
- <property name = "driver" value = "oracle.jdbc.driver.OracleDriver"/>
- <property name = "url" value = "jdbc:oracle:thin:@my_ip:port/dbname"/>
- <property name = "username" value = "username"/>
- <property name = "password" value = "password"/>
- </dataSource>
- </environment>
- </environments>
- <!--<mappers>-->
- <!--<mapper resource = "path of the configuration XML file"/>-->
- <!--</mappers>-->
- </configuration>
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>1.1.1</version>
- </dependency>
- @Mapper
- public interface ImsiByMsisdnModelRepository {
- final String query = "....";
- @Select(query )
- @Results(value = {
- @Result(property = "msisdn", column = "MSISDN"),
- @Result(property = "terminalid", column = "TERMINALID"),
- @Result(property = "startDate", column = "START_DATE"),
- @Result(property = "endDate", column = "END_DATE"),
- })
- List<ImsiByMsisdnModel> getAll(@Param("msisdn") String msisdn);
- }
- mybatis.config-location=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement