コード例 #1
0
 public MbrInputParameter getMetaDataById(Integer id) {
   Session session = HibernateUtils.getCurrentSession();
   MbrInputParameter metaData = new MbrInputParameter();
   metaData = (MbrInputParameter) session.get(MbrInputParameter.class, id);
   return metaData;
 }
コード例 #2
0
 public List<MbrInputParameter> findAllMetaData() {
   Session session = HibernateUtils.getCurrentSession();
   List<MbrInputParameter> list = session.createQuery("from MbrInputParameter").list();
   return list;
 }