Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Which would be better in terms of implementing UserType, an enum or an actual class with id and name fields? Could you elaborate a bit more on if I should implement the different User classes or not, and how a utility class would look like so that the consumers of the library could use methods like someUserDao.find(UserTypeContainer.DEFAULT);? I'd greatly appreciate a bit more complete answer. Commented Oct 20, 2019 at 13:54
  • 1
    @HasanCanSaral added some more detail. Commented Oct 20, 2019 at 22:29