user.setPassword("pass");
user.setFullName("John Q. User");
user.setFromAddress("John.User@somewhere.com");
List<Subscription> list = new ArrayList<Subscription>();
user.setSubscriptions(list);
Subscription sub = null;
sub = new Subscription();
sub.setUser(user);
sub.setHost("mail.yahoo.com");
sub.setProtocol(protocol1);
sub.setUsername("jquser");
sub.setPassword("foo");
list.add(sub);
sub = new Subscription();
sub.setUser(user);
sub.setHost("mail.hotmail.com");
sub.setProtocol(protocol2);
sub.setUsername("user1234");
sub.setPassword("bar");
list.add(sub);
em.persist(user);
// Commit the database updates
et.commit();