Quarkus: hibernate.jdbc.use_get_generated_keys Support

Created on 30 Sep 2020  路  7Comments  路  Source: quarkusio/quarkus

I am porting an application from WildFly and I am having trouble with hibernate not picking up my sequence names. After investigating I figured out that this was because Hibernate cannot detect use_get_generated_keys support at build time, so it now defaults to false and there is no way to set it without using persistence.xml

Thanks for your help in advance!

arehibernate-orm arepersistence kinenhancement

Most helpful comment

I agree that this should be automatic. We shouldn't expose such legacy settings.

All 7 comments

/cc @gsmet, @Sanne

Want to provide a Pull-Request supporting this feature? Unless @Sanne or @gsmet objects against it, it should be similar to https://github.com/quarkusio/quarkus/commit/f9a75ce6738d18c5713dbc7f255afd2b15342a70 AFAIK

hi @jw941 , could you list which JDBC driver you're using?

I would love to see if we can automatically infer the optimal setting, without needing to expose the property.

Hi @Sanne

We are using org.postgresql.postgresql-42.2.9.jar

I agree that this should be automatic. We shouldn't expose such legacy settings.

@Sanne @gavinking could we consider that one for the next 5.4 release train?

@yrodiere is volunteering to have a look at automating this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rashmini picture Rashmini  路  3Comments

blsouthr picture blsouthr  路  3Comments

MossabTN picture MossabTN  路  3Comments

nderwin picture nderwin  路  3Comments

rodrigofujioka picture rodrigofujioka  路  3Comments