use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class EncodeEntities method onCreate.
@CommitAfter
void onCreate() {
User user = new User();
user.setFirstName("name");
session.save(user);
}
use of com.laurentiuspilca.ssc6.entities.User in project tapestry-5 by apache.
the class GridDemo method onActionFromSetup.
@CommitAfter
void onActionFromSetup() {
userDAO.deleteAll();
for (int i = 1; i <= 20; i++) {
User user = new User();
String suffix = String.valueOf(i);
user.setFirstName("Joe_" + suffix);
user.setLastName("User");
user.setEncodedPassword("####");
user.setEmail("joe" + suffix + "@null.com");
session.persist(user);
}
}
use of com.laurentiuspilca.ssc6.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.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);
}
Aggregations