Пример #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();
    }
  }
Пример #3
0
 @Override
 public Menu getUpdateEntity() {
   Menu entity = new Menu();
   entity.setName("hello changed");
   return entity;
 }