04 2017 档案
iOS制作静态包duplicate symbol解决办法
摘要:原文链接 http://stackoverflow.com/questions/41217839/duplicate-symbols-when-integrating-firebase-and-google-sign-in-sdks-manually-wit shell 语法参考:http://bl 阅读全文
posted @ 2017-04-25 19:32 码农时刻 阅读(271) 评论(0) 推荐(0)
记录几篇介绍mysql数据库分表策略的文章
摘要:https://my.oschina.net/ydsakyclguozi/blog/199498 https://aws.amazon.com/articles/0040302286264415 阅读全文
posted @ 2017-04-25 11:44 码农时刻 阅读(91) 评论(0) 推荐(0)
sessionFactory.openSession()和sessionFactory.getCurrentSession的区别
摘要:sessionFactory.openSession重新创建一个session sessionFactory.getCurrentSession 获取当前上下文中的session。 session在Hibernate中是非线程安全的轻量级的对象,在使用过程中要随用随释放。不像transationMa 阅读全文
posted @ 2017-04-18 00:36 码农时刻 阅读(344) 评论(0) 推荐(0)
hibernate saveOrUpdate 没有数据插入到数据库
摘要:saveOrUpdate的作用是:插入或者更新一个对象到数据库, 值得注意的是如果你的主键为空的时候是插入的动作,如果你的主键不为空,则为更新操作。所以当你的每次做插入的动作时如果主键不为空,那你就会碰到一些疑惑了。 阅读全文
posted @ 2017-04-16 15:59 码农时刻 阅读(439) 评论(0) 推荐(0)
swift 懒加载
摘要:格式1:不初始化参数 lazy var var1:ClassType = ClassType() 格式2:初始化 lazy var var1:ClassType = {[weak self] in var varTem:ClassType = ClassType() // do some setti 阅读全文
posted @ 2017-04-14 18:29 码农时刻 阅读(113) 评论(0) 推荐(0)