You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Polish visualization of repository nodes in Spring outline #1536
It would be cool if the nodes representing Spring Data repositories in the Spring outline were polished as follows:
The root node for the repository looks something like this @+ 'payments' (Payment<?>) Repository<Payment<?>,PaymentIdentifier> (class). This is a lot of detail for a high-level node. I wonder if it should be changed to PaymentRepository (@+ payments), i.e., $typeName (@beanLookup).
The individual query methods are currently only listing the names. It would be nice if it were the full signature. So instead of findByStatus, it'd be findByStatus(Status) : List<Payment<?>>
The root node for the repository looks something like this @+ 'payments' (Payment<?>) Repository<Payment<?>,PaymentIdentifier> (class). This is a lot of detail for a high-level node. I wonder if it should be changed to PaymentRepository (@+ payments), i.e., $typeName (@beanLookup).
I thought it might be useful to see some type information in the root node, so that you get a more precise idea for which domain type the repository is defined. E.g. you have something like:
public interface Drinks extends CrudRepository<Drink, DrinkIdentifier>
I simplified the symbol for repositories (for this example) now to @+ 'drinks' Repository(Drink), which basically goes back to @+ 'beanName' Repository(domainType).
If we want to do further refinements here, happy to incorporate them while working on the more comprehensive structural view moving forward.
Activity
GH-1536: include signature information in query method index nodes
martinlippert commentedon Apr 10, 2025
I thought it might be useful to see some type information in the root node, so that you get a more precise idea for which domain type the repository is defined. E.g. you have something like:
The simple version would be:
Drinks (@+ 'drinks')The current version would be:
@+ 'drinks' (Drink) Repository<Drink, DrinkIdentifier>(@beanLookup (@domainType) @repositoryDeclarationDon't you think that we should at least include the exact domain type in here?
martinlippert commentedon Apr 17, 2025
I simplified the symbol for repositories (for this example) now to
@+ 'drinks' Repository(Drink), which basically goes back to@+ 'beanName' Repository(domainType).If we want to do further refinements here, happy to incorporate them while working on the more comprehensive structural view moving forward.
GH-1536: further simplify the document label for repositories