Skip to content
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

Micronaut Template for Data repository - add support for Pageable #6591

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

thurka
Copy link
Contributor

@thurka thurka commented Oct 19, 2023

Currently, the Micronaut Template for Data repository only offers the ability to implement CrudRespoitory. We should offer the choice of implementing PageableRepository through the wizard.

A user is be able to choose if he wants the repository to be based on CRUD, or Pageable. The default is CRUD.

@thurka thurka added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests enterprise [ci] enable enterprise job Micronaut [ci] enable enterprise job labels Oct 19, 2023
@thurka thurka requested a review from dbalek October 19, 2023 15:44
@thurka thurka self-assigned this Oct 19, 2023
Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@@ -132,6 +139,14 @@ protected List<FileObject> createFromTemplate(CreateDescriptor desc) throws IOEx
DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message(Bundle.MSG_NoEntities(sourceGroup.getRootFolder().getPath()), NotifyDescriptor.ERROR_MESSAGE));
return Collections.emptyList();
}
List<Item> repoType = new ArrayList<>();
Item pageableItem = new Item(Bundle.MSG_PageableRepository(), null /*Bundle.DESC_PageableRepository()*/);
repoType.add(new Item(Bundle.MSG_CrudRepository(), null /*Bundle.DESC_CrudRepository()*/));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the item's description commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was there initially, but Jirka suggested to remove it, since it is too long and does not fit well in one line. We can use it as 'detail' string when Item is extended to support it - it currently supports name and description of QuickPickItem.

@thurka thurka merged commit 4c6ab9a into apache:master Oct 24, 2023
33 checks passed
@thurka thurka deleted the GCN-3261 branch October 24, 2023 09:02
@neilcsmith-net neilcsmith-net added this to the NB21 milestone Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise [ci] enable enterprise job LSP [ci] enable Language Server Protocol tests Micronaut [ci] enable enterprise job VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants