-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Optimize NodeRepository #450
base: develop
Are you sure you want to change the base?
WIP Optimize NodeRepository #450
Conversation
ClassModel<VideoNode> videoModel = ClassModel.builder(VideoNode.class).enableDiscriminator(true).build(); | ||
ClassModel<Node> nodeModel = ClassModel.builder(Node.class).build(); | ||
|
||
CodecRegistry pojoCodecRegistry = fromRegistries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can create some factory for this PojoCodecRegistry.
import java.util.List; | ||
|
||
public class NodeDao { | ||
ClassModel<Parent> parent = ClassModel.builder(Parent.class).enableDiscriminator(true).build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to remove this hard coded part somehow. I will think how.
// * @return list of objects of class Node sorted by the selected parameter for sorting | ||
// * in descending order | ||
// */ | ||
// public List<Node> findAllByTypeAndDesc(String sort, boolean desc) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't collect garbage in the code. If you complite with this part, then remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave some comments, how we could improve it.
No description provided.