question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hibernate ORM codestart doesn't compile out of the box, jdbc extension is needed

See original GitHub issue

Describe the bug

Hibernate ORM codestart doesn’t compile out of the box, jdbc extension is needed

Hibernate ORM codestart was introduced in https://github.com/quarkusio/quarkus/pull/20879 by @loicmathieu

Expected behavior

codestart compiles

Actual behavior

codestart doesn’t compile on its own, additional changes are needed

How to Reproduce?

Download sample app with just orm extension selected from https://code.quarkus.io/

Run mvn clean verify

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:27 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
yrodierecommented, Nov 4, 2022

I’ll let @Sanne and @yrodiere decide on this one.

Ok, so I’ll decide: we’ve been arguing for a long time with no decision, we need to move on. Let’s close this.

Two motivations:

  1. Codestarts are a thing whether we like it or not. We could argue about their value, but that ship has sailed. If we provide codestarts, let’s provide them consistently.
  2. Adding a JDBC extension automatically is not possible, because we don’t know which one to add. Better an application that fails and tells you why than an application that takes a decision without you knowing, and may take the wrong decision.

So let’s keep the things as they are, and keep adding codestarts. If people forget to include a JDBC driver, we’ll error out and people will just include a JDBC driver. If the current error is unclear, we’ll improve it.

AFAICS, I’m not the only one with that opinion.

Closing as not planned; thanks everyone involved for the discussion.

2reactions
loicmathieucommented, Jan 19, 2022

So, what is the decision around this issue ? It blocks #21651

My take on it: keep it as today, an error is good and people must add a JDBC driver when using Hibernate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Guides - Latest - Quarkus
This guide explains how to migrate an application from RESTEasy Classic to RESTEasy Reactive. Writing Simple REST CRUD Services. Hibernate ORM REST Data...
Read more >
Generating Java Using CodeFluent Entities and Hibernate
In order to connect to the database, Hibernate needs a configuration file. This project-wide configuration file has the ".cfg.xml" extension. It not only ......
Read more >
RESTEasy Reactive Blocking vs Non-Blocking by default
I would like to revisit the topic of the default blocking vs non-blocking for RESTEasy Reactive. As we start to push users more...
Read more >
Using Quarkus to develop a multiplayer game - Chapter #1
By simply adding the JDBC driver as a Quarkus extension and Hibernate as ORM mapper, we already have everything we need to start...
Read more >
Sakai 2.9 release notes - Documentation - Confluence
Ability to set score for students who have not submitted their work. ... New security infrastructure introduced in Sakai 2.9.2 (off by default, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found