Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernate Reactive hot reload issue #13355

Closed
cescoffier opened this issue Nov 18, 2020 · 5 comments
Closed

Hibernate Reactive hot reload issue #13355

cescoffier opened this issue Nov 18, 2020 · 5 comments
Assignees
Labels
area/devmode area/hibernate-orm Hibernate ORM area/hibernate-reactive Hibernate Reactive area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant

Comments

@cescoffier
Copy link
Member

Describe the bug

In dev mode, when I update an entity, I get:

Type specified for TypedQuery [me.escoffier.pirate.quotes.model.Quote] is incompatible with query return type [class me.escoffier.pirate.quotes.model.Quote]

I was updating a named query:

@NamedQuery(name = "Quotes.findAll", query = "SELECT f FROM Quote f")

Expected behavior
It should work :-D

Actual behavior
It does not work

To Reproduce

A simple entity with a named query in dev mode should reproduce it.

@cescoffier cescoffier added the kind/bug Something isn't working label Nov 18, 2020
@ghost ghost added area/devmode area/hibernate-orm Hibernate ORM area/hibernate-reactive Hibernate Reactive area/persistence OBSOLETE, DO NOT USE labels Nov 18, 2020
@ghost
Copy link

ghost commented Nov 18, 2020

/cc @Sanne, @aguibert, @gavinking, @gsmet

@Sanne
Copy link
Member

Sanne commented Nov 18, 2020

@aguibert could you have a look at this one?

@aguibert aguibert self-assigned this Nov 18, 2020
@aguibert
Copy link
Member

Sure, I'll take a look

@aguibert
Copy link
Member

aguibert commented Dec 3, 2020

@cescoffier I attempted to reproduce this issue on Quarkus 1.10.2.Final and was not able to force any unexpected errors with the scenario you described. Are you still able to reproduce this issue? If so, you can please push up a reproducer so I can take a look?

FYI here is the repo I used for an attempted reproducer: https://github.com/aguibert/basic-quarkus-mvn/tree/quarkus-bug-13355
Different scenarios I tried were:

  • Adding a new property to the Fruit entity
  • Updating the named query from SELECT f FROM Fruit f to SELECT f FROM Fruit f ORDER BY f.name
  • Updating the rest endpiont

To use the sample reproducer, you can hit a combination of these endpoints:

  • create a new fruit: GET http://localhost:8080/create
  • list all fruits with named query: GET http://localhost:8080/fruits

@cescoffier
Copy link
Member Author

I may likely have been fixed in the meantime.
The application I was using mixed gRPC and Hibernate Reactive.

Let's close this issue and if I see it again, I will provide a reproducer.

@cescoffier cescoffier added the triage/out-of-date This issue/PR is no longer valid or relevant label Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devmode area/hibernate-orm Hibernate ORM area/hibernate-reactive Hibernate Reactive area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant
Projects
None yet
Development

No branches or pull requests

3 participants