Skip to content

Polish visualization of repository nodes in Spring outline #1536

Closed

Description

@odrotbohm

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<?>>

Activity

  1. self-assigned this
    on Apr 9, 2025
  2. added
    for: eclipse
    for: vscode
    and removed on Apr 9, 2025
  3. added this to the 4.30.0.RELEASE milestone on Apr 9, 2025
  4. added a commit that references this issue on Apr 10, 2025
  5. martinlippert commented on Apr 10, 2025

    @martinlippert
    Member
    • 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>
    

    The simple version would be:

    • Drinks (@+ 'drinks')

    The current version would be:

    • @+ 'drinks' (Drink) Repository<Drink, DrinkIdentifier>
      (@beanLookup (@domainType) @repositoryDeclaration

    Don't you think that we should at least include the exact domain type in here?

  6. martinlippert commented on Apr 17, 2025

    @martinlippert
    Member

    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.

  7. added a commit that references this issue on Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: spring index & symbolstheme: spring-data-supporttype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions