Skip to content

Inheritance in DAOS #2866

Answered by simolus3
ArthurValada asked this question in Q&A
Jan 27, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Not at all, the code I've posted was wrong. The first type parameter on TableInfo is the source table class that you've added to the database, the second one is the generated row class. So it should be BaseDao<D, T extends TableInfo<WithDates, D>> and then the UsersDao would extend BaseoDao<User, $UsersTable>.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ArthurValada
Comment options

@simolus3
Comment options

Answer selected by ArthurValada
@ArthurValada
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants