示例#1
0
 @Override
 public Menu getSaveAndNewEntity() {
   Menu entity = new Menu();
   entity.setUid(UUIDUtil.newUUID());
   entity.setName("hello 2");
   return entity;
 }
示例#2
0
  @Before
  public void init() {
    if (!isInited) {
      isInited = true;

      Menu menu = new Menu();
      menu.setUid(UUIDUtil.newUUID());
      menu.setName("hello");
      jpaDataAccessService.saveEntity(menu);
      menuUid = menu.getUid();
    }
  }