databases.yml 2.65 KB
datasources:
   ufo_passport:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.user.IUserAuthorizeHistoryDao
        - com.yohoufo.dal.user.IUserAuthorizeInfoDao
        - com.yohoufo.dal.user.IZhiMaCertDao
        - com.yohoufo.dal.user.IStoredSellerDao

   ufo_product:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.product.StoragePriceMapper
        - com.yohoufo.dal.product.StorageMapper
        - com.yohoufo.dal.product.ProductMapper
        - com.yohoufo.dal.product.GoodsMapper
        - com.yohoufo.dal.product.GoodsImagesMapper
        - com.yohoufo.dal.product.SizeMapper
        - com.yohoufo.dal.product.BrandMapper
        - com.yohoufo.dal.product.BrandSeriesMapper
        - com.yohoufo.dal.product.ProductSortMapper
        - com.yohoufo.dal.product.SearchWordMapper

   ufo_order:
         servers:
           - ${jdbc.mysql.ufo.master}
           - ${jdbc.mysql.ufo.slave}
         username: ${jdbc.mysql.ufo.username}
         password: ${jdbc.mysql.ufo.password}
         daos:
           - com.yohoufo.dal.order.BuyerOrderGoodsMapper
           - com.yohoufo.dal.order.BuyerOrderMapper
           - com.yohoufo.dal.order.BuyerOrderMetaMapper
           - com.yohoufo.dal.order.ExpressRecordMapper
           - com.yohoufo.dal.order.ExpressInfoMapper
           - com.yohoufo.dal.order.SellerOrderGoodsMapper
           - com.yohoufo.dal.order.SellerOrderMapper
           - com.yohoufo.dal.order.SellerOrderMetaMapper
           - com.yohoufo.dal.order.OrdersPayMapper
           - com.yohoufo.dal.order.OrdersPayRefundMapper
           - com.yohoufo.dal.order.ExpressCompanyMapper
           - com.yohoufo.dal.order.AppraiseAddressMapper
           - com.yohoufo.dal.order.TradeBillsMapper
           - com.yohoufo.dal.order.OrdersPayTransferMapper
           - com.yohoufo.dal.order.ManualTransferMapper
           - com.yohoufo.dal.order.MachineIdGenerateMapper

   ufo_resource:
      servers:
        - ${jdbc.mysql.ufo.master}
        - ${jdbc.mysql.ufo.slave}
      username: ${jdbc.mysql.ufo.username}
      password: ${jdbc.mysql.ufo.password}
      daos:
        - com.yohoufo.dal.resource.ResourcesContentDataMapper
        - com.yohoufo.dal.resource.ResourcesContentMapper
        - com.yohoufo.dal.resource.ResourcesMapper
        - com.yohoufo.dal.resource.ConfigTypeMapper
        - com.yohoufo.dal.resource.ResourcesGoodsPoolMapper
readOnlyInSlave: true