@Test public void update() { PlayerProfile profile = new PlayerProfile(UUID.randomUUID(), "name"); ebean.save(profile); assertNotNull(profile); profile.getPurchases().addPurchase(1, new Purchase(10, 1, "Desc", profile)); runAndAssertQueries(3, () -> repository.update(profile.getPurchases())); PlayerProfile afterUpdate = ebean.find(PlayerProfile.class).setId(profile.getId()).fetch( PlayerAssociation.PURCHASES.getPath()).findOne(); assertNotNull(afterUpdate); assertTrue(afterUpdate.getPurchases().hasPurchase(1)); }
public void update(PlayerPurchases purchases) { ebeanServer.update(purchases); }
PurchaseRepository { public void update(PlayerPurchases purchases) { ebeanServer.update(purchases); } }
PurchaseRepository { public void update(PlayerPurchases purchases) { ebeanServer.update(purchases); }  }
PurchaseRepository { public void update(PlayerPurchases purchases) { ebeanServer.update(purchases); }  void update(PlayerPurchases purchases); }
PurchaseRepository { public void update(PlayerPurchases purchases) { ebeanServer.update(purchases); }  void update(PlayerPurchases purchases);  }