0

I'm building a quarkus project with 3 modules: api (jax-rs), web (vaadin) and model (shared). The model module contains entity classes annotated with JPA @Entity.

The api module can compile and use the classes sucessfully, however, the web module fails to start as it can't find the default datasource:

Model classes are defined for the default persistence unit, but no default datasource was found.

How can a web application use the shared entity class definition, for example in rest client, wihtout triggering JPA detection by Quarkus (just ignore the annotations and use it as a plain object)?

Julio Faerman
  • 13,228
  • 9
  • 57
  • 75

1 Answers1

0

You don't want @Entity to be picked up ? don't add Hibernate/JPA extension to the project would be the easiest.

Max Rydahl Andersen
  • 3,630
  • 2
  • 23
  • 28