Skip to content

Introduce methods to get a specific option from a Query/EntityHandler #1052

Description

@marko-bekhta

Introduce methods to get a specific option on the following interfaces:

  • jakarta.persistence.TypedQuery
  • jakarta.persistence.Statement
  • jakarta.persistence.StoredProcedureQuery
    and
  • jakarta.persistence.EntityManager
  • jakarta.persistence.EntityAgent

Currently, these interfaces provide the user with a way to get all options at once: Set<Option> getOptions(); Let's add:

<T extends Option> T getOption(Class<T> optionType);

where the user can ask for a specific option rather than all at once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions