Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Thomas-Rosenkrans-Vestergaard/f06c27cd857825ea56ca5786518d8f33 to your computer and use it in GitHub Desktop.
Save Thomas-Rosenkrans-Vestergaard/f06c27cd857825ea56ca5786518d8f33 to your computer and use it in GitHub Desktop.
data:
interface UserEntity {
}
interface UserDAO {
public UserEntity getUser(int id);
}
class MysqlUserDAO implements UserDAO {
public UserEntityImpl getUser(int id);
private inner class UserEntityImpl implements UserEntity {
}
}
logic:
interface User extends UserEntity {
}
class UserFacade {
UserDAO dao = new MysqlUser...
User getUser() {
return dao.getUser();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment