// Path: tcc-transaction-tutorial-sample/tcc-transaction-sample/tcc-transaction-order/src/main/java/org/pankai/tcctransaction/sample/order/domain/entity/Shop.java
// public class Shop {
// 
//     private long id;
// 
//     private long ownerUserId;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public long getOwnerUserId() {
//         return ownerUserId;
//     }
// 
//     public void setOwnerUserId(long ownerUserId) {
//         this.ownerUserId = ownerUserId;
//     }
// }


import org.pankai.tcctransaction.sample.order.domain.entity.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import java.sql.ResultSet;
import java.sql.SQLException;
package org.pankai.tcctransaction.sample.order.domain.repository;



/**
 * Created by pktczwd on 2016/12/16.
 */
@Repository
public class ShopRepository {

    @Autowired
    private JdbcTemplate jdbcTemplate;

// Path: tcc-transaction-tutorial-sample/tcc-transaction-sample/tcc-transaction-order/src/main/java/org/pankai/tcctransaction/sample/order/domain/entity/Shop.java
// public class Shop {
// 
//     private long id;
// 
//     private long ownerUserId;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public long getOwnerUserId() {
//         return ownerUserId;
//     }
// 
//     public void setOwnerUserId(long ownerUserId) {
//         this.ownerUserId = ownerUserId;
//     }
// }


// Path: tcc-transaction-tutorial-sample/tcc-transaction-sample/tcc-transaction-order/src/main/java/org/pankai/tcctransaction/sample/order/domain/repository/ShopRepository.java
import org.pankai.tcctransaction.sample.order.domain.entity.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import java.sql.ResultSet;
import java.sql.SQLException;

package org.pankai.tcctransaction.sample.order.domain.repository;



/**
 * Created by pktczwd on 2016/12/16.
 */
@Repository
public class ShopRepository {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public Shop findById(long id) {