April 2018
Intermediate to advanced
382 pages
10h 11m
English
public class User implements Serializable{ private String name; private String email; public User(){ } public User(String name, String email) { this.name = name; this.email = email; } //DO NOT FORGET TO IMPLEMENT THE GETTERS AND SETTERS}
@Statelesspublic class UserBean { public User getUser(){ long ts = System.currentTimeMillis(); return new User("Bean" + ts, "user" + ts + "@eldermoraes.com"); }}
@Path("userservice")public class UserService implements Serializable{ @Inject private UserBean userBean; private User userLocal; @Inject ...Read now
Unlock full access