2011年12月31日

play framework之事务管理

摘要: play!中持久层采用jpa,它的事务管理不需要用户进行控制:Play will automatically manage transactions for you. It will start a transaction for each HTTP request and commit it when the HTTP response is sent. If your code throws an exception, the transaction will automatically rollback.但是只限制在它本身的一个线程内。有时候,我们需要自己另外重起一个线程(可以理解为:不 阅读全文

posted @ 2011-12-31 12:59 左手写 阅读(2956) 评论(1) 推荐(0) 编辑

导航