Skip to content

Conversation

@Vikkingg13
Copy link
Member

No description provided.

ClassModel<VideoNode> videoModel = ClassModel.builder(VideoNode.class).enableDiscriminator(true).build();
ClassModel<Node> nodeModel = ClassModel.builder(Node.class).build();

CodecRegistry pojoCodecRegistry = fromRegistries(
Copy link
Member

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();
Copy link
Member

@Hardelele Hardelele Dec 18, 2020

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) {
Copy link
Member

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.

Copy link
Member

@Hardelele Hardelele left a 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.

@mamadaliev mamadaliev added the example Example of the new feature label Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

example Example of the new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants