use of com.laurentiuspilca.ssc6.entities.User in project 2021-msk-food-delivery by netcracker-edu.
the class UserUtils method createUser.
public static User createUser(Long id, String fullName, String email, Role role) {
User user = new User();
user.setId(id);
user.setFullName(fullName);
user.setEmail(email);
user.setRole(role);
// "password" hashed
user.setPassword("$2a$08$1h5twwivIL7O9gyjIJ/9eO4I2BeSytSpjsbpaPN.dxWSJM0fuWBBm");
return user;
}
use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class SSOEntity method onPersistEntity.
void onPersistEntity() {
final User user = new User();
user.setFirstName("name");
userDAO.add(user);
this.user = user;
}
use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class EncodeEntities method onCreate.
@CommitAfter
@PersistenceContext(unitName = AppConstants.TEST_PERSISTENCE_UNIT)
void onCreate() {
final User user = new User();
user.setFirstName("name");
entityManager.persist(user);
}
use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class PersistEntity method onCreateEntity.
void onCreateEntity() {
User user = new User();
user.setFirstName("name");
userDAO.add(user);
this.user = user;
}
use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class SSOEntity method onPersistEntity.
void onPersistEntity() {
User user = new User();
user.setFirstName("name");
userDAO.add(user);
this.user = user;
}
Aggregations