Skip to content

SessionRepository generics issues #3

Closed
@rwinch

Description

@rwinch

If you want to use a generic implementation of SessionRepository, it causes issues with saving at the moment. For example, the following will not work:

SessionRepository<? extends Session> repo = ..
Session session = repo.getSession(sessionId);
...
repo.save(session);

If we create a specific repository it cannot be wired using

@Autowired
SessionRepository<Session> repo;

since the generic type is different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions