use of org.eclipse.che.commons.test.tck.repository.TckRepositoryException in project che by eclipse.
the class UserJpaTckRepository method createAll.
@Override
public void createAll(Collection<? extends UserImpl> entities) throws TckRepositoryException {
final EntityManager manager = managerProvider.get();
entities.stream().map(user -> new UserImpl(user.getId(), user.getEmail(), user.getName(), encryptor.encrypt(user.getPassword()), user.getAliases())).forEach(manager::persist);
}
Aggregations