/** @generated */
 private void insertData() {
   for (int i = 0; i < 3; i++) {
     RateProviderEntity entity = new RateProviderEntity();
     ProviderEntity product = new ProviderEntity();
     product.setName(generateRandom(String.class));
     em.persist(product);
     ClientEntity client = new ClientEntity();
     client.setName(generateRandom(String.class));
     em.persist(client);
     entity.setClient(client);
     entity.setProvider(product);
     entity.setRate((int) (Math.random() * 5) + 1);
     em.persist(entity);
     data.add(entity);
   }
 }