Domain

  • Domain is a POJO class represent data in the database layer
  • For example
public class User {
	private String userName;
	private String password;
}

Note: to hide the view, we use DTO