Get object by ID in Hibernate

前端 未结 0 888
深忆病人
深忆病人 2021-02-15 23:06

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

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


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