Last active
April 16, 2018 12:34
-
-
Save Thomas-Rosenkrans-Vestergaard/f06c27cd857825ea56ca5786518d8f33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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