Package com.nurkiewicz.jdbcrepository.repositories

Examples of com.nurkiewicz.jdbcrepository.repositories.CommentRepository


  public static final int ORACLE_PORT = Integer.parseInt(System.getProperty("oracle.port", "1521"));

  @Bean
  @Override
  public CommentRepository commentRepository() {
    return new CommentRepository("comments");
  }
View Full Code Here


  public static final int MSSQL_PORT = Integer.parseInt(System.getProperty("mssql.port", "1433"));

  @Bean
  @Override
  public CommentRepository commentRepository() {
    return new CommentRepository("comments");
  }
View Full Code Here

@Configuration
public class JdbcRepositoryTestDerbyConfig extends JdbcRepositoryTestConfig {

  @Override
  public CommentRepository commentRepository() {
    return new CommentRepository(CommentRepository.MAPPER,
        new RowUnmapper<Comment>() {
          @Override
          public Map<String, Object> mapColumns(Comment comment) {
            Map<String, Object> mapping = new LinkedHashMap<String, Object>();
            mapping.put("ID", comment.getId());
View Full Code Here

  @Bean
  public abstract DataSource dataSource();

  @Bean
  public CommentRepository commentRepository() {
    return new CommentRepository("COMMENTS");
  }
View Full Code Here

  public static final int POSTGRESQL_PORT = 5432;

  @Bean
  @Override
  public CommentRepository commentRepository() {
    return new CommentRepository("comments");
  }
View Full Code Here

  public static final int MSSQL_PORT = Integer.parseInt(System.getProperty("mssql2012.port", "1433"));

  @Bean
  @Override
  public CommentRepository commentRepository() {
    return new CommentRepository("comments");
  }
View Full Code Here

TOP

Related Classes of com.nurkiewicz.jdbcrepository.repositories.CommentRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.