public void add(NotePage notePage) {
   if (notePage.getObid() == null || notePage.getObid().trim().equals("")) {
     notePage.setObid(UUID.randomUUID().toString());
   }
   NoteEntity t = new NoteEntity();
   BeanUtils.copyProperties(notePage, t);
   noteEntityDao.save(t);
 }
 public NoteEntity get(NotePage notePage) {
   return noteEntityDao.get(NoteEntity.class, notePage.getObid());
 }
 public void update(NotePage notePage) throws Exception {
   NoteEntity t = noteEntityDao.get(NoteEntity.class, notePage.getObid());
   if (t != null) {
     MyBeanUtils.copyBeanNotNull2Bean(notePage, t);
   }
 }