use of com.ncedu.fooddelivery.api.v1.entities.User in project tapestry-5 by apache.
the class PersistEntity method onCreateEntity.
@CommitAfter
@PersistenceContext(unitName = AppConstants.TEST_PERSISTENCE_UNIT)
void onCreateEntity() {
final User user = new User();
user.setFirstName("name");
entityManager.persist(user);
this.user = user;
}
use of com.ncedu.fooddelivery.api.v1.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.ncedu.fooddelivery.api.v1.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.ncedu.fooddelivery.api.v1.entities.User in project tapestry-5 by apache.
the class GridDemo method onActionFromSetup.
@CommitAfter
@PersistenceContext(unitName = AppConstants.TEST_PERSISTENCE_UNIT)
void onActionFromSetup() {
userDAO.deleteAll();
for (int i = 1; i <= 20; i++) {
final User user = new User();
final String suffix = String.valueOf(i);
user.setFirstName("Joe_" + suffix);
user.setLastName("User");
user.setEncodedPassword("####");
user.setEmail("joe" + suffix + "@null.com");
entityManager.persist(user);
}
}
use of com.ncedu.fooddelivery.api.v1.entities.User in project tapestry-5 by apache.
the class Index method onActionFromCommitAfter.
Object onActionFromCommitAfter() {
final User user = new User();
user.setFirstName("Diane");
userDAO.add(user);
commitAfterDemo.setUser(user);
return commitAfterDemo;
}
Aggregations