Skip to content

Have a way to get access to EntityManager even without entities #7148

@maxandersen

Description

@maxandersen

Description
JPA and Hibernate APIs can still be used and be useful without entities( query raw data and using native sql) but for now we don't support @Inject of JPA apis when no entities.

At the moment having to tell users to create a dummy entity to get access to a stateless session is pretty suboptimal :)

Implementation ideas
have a quarkus.jpa.enable=true|false|auto property to allow to set to true.

What do you say @Sanne / @gsmet ? :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions