Get object by ID in Hibernate

前端 未结 0 2057
梦谈多话
梦谈多话 2021-02-15 22:42

I noticed that our senior developer uses following code for retrieving entity by ID:

@Override
public Source get(Long id) {
    Session session = getSession();
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题