hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

Hibernate's core Object/Relational Mapping functionality

Results 538 hibernate-orm issues
Sort by recently updated
recently updated
newest added

Improve ListresultConsumer duplication check method performance

[{"_id":"632d7a25f6ca2276484a9e90","body":"Thanks for your pull request!\n\nThis pull request appears to follow the contribution rules.\n\n\u203a This message was automatically generated.","issue_id":1660161939619,"origin_id":1209002818,"user_origin_id":80328618,"create_time":1660029349,"update_time":1662368260,"id":1663924773572,"updated_at":"2022-09-23T09:19:33.572000Z","created_at":"2022-09-23T09:19:33.572000Z"},{"_id":"632d7a25f6ca2276484a9e91","body":"my concern is the impact of the new `IdentityHashMap` for small\/medium results where the original solution had not real perf issues ","issue_id":1660161939619,"origin_id":1210706247,"user_origin_id":432649,"create_time":1660139548,"update_time":1660139548,"id":1663924773577,"updated_at":"2022-09-23T09:19:33.576000Z","created_at":"2022-09-23T09:19:33.576000Z"},{"_id":"632d7a25f6ca2276484a9e92","body":">my concern is the impact of the new `IdentityHashMap` for small\/medium results where the original solution had not real perf issues\r\n\r\nWe could try to allocate the `IdentityHashMap` only when exceeding a certain row count threshold, but not sure if that makes things a lot better.\r\n\r\nI think, if we pass through a maxResults estimate into `org.hibernate.sql.results.spi.ResultsConsumer#consume`, we could reduce the possible negative effects to only HQL\/Criteria queries that select entities where we have no good estimate. In the end, I think we simply need guidance from the user. The user should be able to provide a hint that says \"don't deduplicate\", in which case we can avoid the `IdentityHashMap`.","issue_id":1660161939619,"origin_id":1210742814,"user_origin_id":358916,"create_time":1660141227,"update_time":1660141227,"id":1663924773580,"updated_at":"2022-09-23T09:19:33.580000Z","created_at":"2022-09-23T09:19:33.580000Z"},{"_id":"632d7a25f6ca2276484a9e93","body":"IMO conceptually we'd need a https:\/\/en.wikipedia.org\/wiki\/Bloom_filter\r\nNot keen to add a dependency though - could we check how close we get approximating it via an identity hashmap ?","issue_id":1660161939619,"origin_id":1210839635,"user_origin_id":42573,"create_time":1660144609,"update_time":1660144609,"id":1663924773583,"updated_at":"2022-09-23T09:19:33.583000Z","created_at":"2022-09-23T09:19:33.583000Z"},{"_id":"632d7a25f6ca2276484a9e94","body":">IMO conceptually we'd need a https:\/\/en.wikipedia.org\/wiki\/Bloom_filter\r\n>Not keen to add a dependency though - could we check how close we get approximating it via an identity hashmap ?\r\n\r\nYeah, either add a dependency or implement\/integrate this ourselves in hibernate-core. It's not trivial to implement this, but I think it would be worth it to add a custom implementation. Standard Bloom filters AFAIU need a fixed size, but since we keep the data around, we could grow the bit set on-demand similar to what a hash table does, but use a lot less memory (64 times memory savings i.e. for 1M elements we'd use ~2KB instead of ~1MB). Growing a bit set also consumes a lot less memory, though rehashing is still necessary.","issue_id":1660161939619,"origin_id":1211071656,"user_origin_id":358916,"create_time":1660154672,"update_time":1660154672,"id":1663924773586,"updated_at":"2022-09-23T09:19:33.585000Z","created_at":"2022-09-23T09:19:33.585000Z"}] comment

just an attempt to address the potential perf issue mentioned in the https://github.com/hibernate/hibernate-orm/pull/4924 discussion.

HHH-8713 generated model misses <T>

[{"_id":"632d75012a93a530bb1d486d","body":"Thanks for your pull request!\n\nThis pull request appears to follow the contribution rules.\n\n\u203a This message was automatically generated.","issue_id":1660161939622,"origin_id":1086701882,"user_origin_id":80328618,"create_time":1648925780,"update_time":1670487764,"id":1663923457806,"updated_at":"2024-04-16T08:55:45.167000Z","created_at":"2022-09-23T08:57:37.806000Z"},{"_id":"632d75012a93a530bb1d486e","body":"Could somebody have a look on this ?","issue_id":1660161939622,"origin_id":1191899321,"user_origin_id":17269467,"create_time":1658435042,"update_time":1658435042,"id":1663923457810,"updated_at":"2022-09-23T08:57:37.809000Z","created_at":"2022-09-23T08:57:37.809000Z"},{"_id":"632d75012a93a530bb1d4870","body":"Here, at [OHDSI](https:\/\/github.com\/OHDSI) we have a few inheritance cases that block us from using metamodel generator.\r\nCan somebody from the maintainers provide feedback for this solution?","issue_id":1660161939622,"origin_id":1209009769,"user_origin_id":87665105,"create_time":1660029826,"update_time":1660029826,"id":1663923457814,"updated_at":"2022-09-23T08:57:37.814000Z","created_at":"2022-09-23T08:57:37.814000Z"},{"_id":"632d75012a93a530bb1d4872","body":"I need that as well. What is the status? ","issue_id":1660161939622,"origin_id":1231378274,"user_origin_id":3305166,"create_time":1661850173,"update_time":1661850173,"id":1663923457818,"updated_at":"2022-09-23T08:57:37.818000Z","created_at":"2022-09-23T08:57:37.818000Z"}] comment

added implementation for the metamodel generator : HHH-8713 generated model misses .

HHH-13794 Fix ClassCast problem JAXBContext

[{"_id":"632d7aff86e0e72407716f02","body":"Could someone have a look at this PR please?","issue_id":1660161939624,"origin_id":665046708,"user_origin_id":281528,"create_time":1595943609,"update_time":1595943609,"id":1663924991310,"updated_at":"2022-09-23T09:23:11.309000Z","created_at":"2022-09-23T09:23:11.309000Z"},{"_id":"632d7aff86e0e72407716f04","body":"This exactly solves my problem of using jpamodelgen with JDK 11","issue_id":1660161939624,"origin_id":766801849,"user_origin_id":73884586,"create_time":1611579899,"update_time":1611579899,"id":1663924991314,"updated_at":"2022-09-23T09:23:11.314000Z","created_at":"2022-09-23T09:23:11.314000Z"},{"_id":"632d7aff86e0e72407716f06","body":"Is it possible to get this merged?","issue_id":1660161939624,"origin_id":1206329621,"user_origin_id":48164091,"create_time":1659697889,"update_time":1659697889,"id":1663924991319,"updated_at":"2022-09-23T09:23:11.318000Z","created_at":"2022-09-23T09:23:11.318000Z"},{"_id":"632d7aff86e0e72407716f07","body":"I was just looking into this, but it seems newer Maven and\/or Java versions (11 update 9) are not affected anymore. At least I couldn't reproduce the error. Please continue the discussion on https:\/\/hibernate.atlassian.net\/browse\/HHH-13794","issue_id":1660161939624,"origin_id":1214719833,"user_origin_id":358916,"create_time":1660549779,"update_time":1660549779,"id":1663924991328,"updated_at":"2022-09-23T09:23:11.327000Z","created_at":"2022-09-23T09:23:11.327000Z"},{"_id":"661e43896c617b7b5009d3b2","body":"The problem still exists with Hibernate 6.3.1, JDK17, Maven 3.9.4, Maven Compiler Plugin 3.11.0. I created an up-to-date reproducer, see https:\/\/hibernate.atlassian.net\/browse\/HHH-13794?focusedCommentId=112967","issue_id":1660161939624,"origin_id":1730832667,"user_origin_id":47957,"create_time":1695361378,"update_time":1695361378,"id":1713259401582,"updated_at":"2024-04-16T09:23:21.582000Z","created_at":"2024-04-16T09:23:21.582000Z"}] comment

- Use the current (XmlParserHelper) class's classloader to create the root JAXB context, so as to avoid a class cast problem with classes loaded on different classloaders due to jaxb...

-exclude synthetic fields from generateTokenNameCache computation. -fix javadoc to states that, and forbid 'implementor' that might be an invalid input -remove unused private static TOKEN_NAMES from SqlScriptParser

HHH-15192 - Remove support for Sybase ASE versions older than 16

[{"_id":"632d800a86e0e724077170eb","body":"Moving this back to 'draft', since there seems to be a problem with the net.sourceforge.jtds.jdbc.Driver, version 1.3.1 is very old, and does not seem to support the call to getConnection().getSchema():\r\n`java.lang.AbstractMethodError \tat net.sourceforge.jtds.jdbc.JtdsConnection.getSchema`\r\n","issue_id":1660161939629,"origin_id":1171650894,"user_origin_id":2429919,"create_time":1656621280,"update_time":1656621280,"id":1663926282513,"updated_at":"2022-09-23T09:44:42.512000Z","created_at":"2022-09-23T09:44:42.512000Z"}] comment

https://hibernate.atlassian.net/browse/HHH-15192 Signed-off-by: Jan Schatteman

HHH-15190 - Remove support for H2 versions older than 1.4.197

[{"_id":"632d8187f6ca2276484aa218","body":"Hi @katzyn, the intent is to copy the original main dialect\/translator as-is into the hibernate-community-dialects project, named like `...LegacyDialect`\/`...LegacySqlAstTranslator`, and then change only the main dialect:\r\n\r\n* Introduce a minimum version\r\n* Remove code that checks for versions smaller than the minimum version\r\n\r\nI suggested to use the version 1.4.197 as minimum version, because that is currently widely used in some other projects and I didn't want to force everyone to update immediately, especially because the update involves a lot of work for some users. This is just a first step though where the Hibernate team tries to setup a baseline of \"supported\" versions. We can raise the minimum to 2.1.x for the next minor release again if we see adoption of the new version.","issue_id":1660161939631,"origin_id":1162714063,"user_origin_id":358916,"create_time":1655880534,"update_time":1655880534,"id":1663926663648,"updated_at":"2022-09-23T09:51:03.647000Z","created_at":"2022-09-23T09:51:03.647000Z"}] comment

https://hibernate.atlassian.net/browse/HHH-15190 Signed-off-by: Jan Schatteman

HHH-15181 / HHH-15197 / HHH-15198

[{"_id":"632d7bc43fd2924a390afdf2","body":"Thanks for your pull request!\n\nThis pull request appears to follow the contribution rules.\n\n\u203a This message was automatically generated.","issue_id":1660161939633,"origin_id":1179191861,"user_origin_id":80328618,"create_time":1657299327,"update_time":1662556371,"id":1663925188019,"updated_at":"2022-09-23T09:26:28.018000Z","created_at":"2022-09-23T09:26:28.018000Z"}] comment

Remove support for DB2 versions older than 10.5 (https://hibernate.atlassian.net/browse/HHH-15181) Remove support for DB2i versions older than 7.1 (https://hibernate.atlassian.net/browse/HHH-15197) Remove support for DB2z versions older than 12.1 (https://hibernate.atlassian.net/browse/HHH-15198) Signed-off-by: Jan Schatteman

HHH-15195 - Remove support for CockroachDB versions older than 21.1

[{"_id":"632d78be3fd2924a390afd17","body":"Thanks for your pull request!\n\nThis pull request appears to follow the contribution rules.\n\n\u203a This message was automatically generated.","issue_id":1660161939634,"origin_id":1146238200,"user_origin_id":80328618,"create_time":1654280225,"update_time":1662392029,"id":1663924414496,"updated_at":"2022-09-23T09:13:34.496000Z","created_at":"2022-09-23T09:13:34.496000Z"},{"_id":"632d78be3fd2924a390afd18","body":"Reworked this to get rid of the inheritance","issue_id":1660161939634,"origin_id":1152545461,"user_origin_id":2429919,"create_time":1654879258,"update_time":1654879258,"id":1663924414499,"updated_at":"2022-09-23T09:13:34.499000Z","created_at":"2022-09-23T09:13:34.499000Z"}] comment

…y dialects https://hibernate.atlassian.net/browse/HHH-15195 Signed-off-by: Jan Schatteman

Some small optimisations thatwere highlighted during the last round of benchmarking - https://hibernate.atlassian.net/browse/HHH-15275

HHH-13106 : Fixes schema validation failure with PostgreSQL 10

[{"_id":"632d7c062a93a530bb1d4b57","body":"Is there any plan to merge this ?","issue_id":1660161939639,"origin_id":949348778,"user_origin_id":13585883,"create_time":1634886366,"update_time":1634886366,"id":1663925254203,"updated_at":"2022-09-23T09:27:34.203000Z","created_at":"2022-09-23T09:27:34.203000Z"},{"_id":"632d7c062a93a530bb1d4b58","body":"I'll second kedar-joshi.\r\n\r\n> **Is there any plan to fix-merge this?**","issue_id":1660161939639,"origin_id":1176256203,"user_origin_id":308074,"create_time":1657115878,"update_time":1657115878,"id":1663925254208,"updated_at":"2022-09-23T09:27:34.208000Z","created_at":"2022-09-23T09:27:34.208000Z"},{"_id":"637bd9b333d90d275c3ce9d1","body":"Guys, are you planning to merge this one or fix this issue in another PR?\r\nThis issue is still reproducible","issue_id":1660161939639,"origin_id":1288858017,"user_origin_id":30556705,"create_time":1666609052,"update_time":1666609052,"id":1669061043256,"updated_at":"2022-11-21T20:04:03.256000Z","created_at":"2022-11-21T20:04:03.256000Z"},{"_id":"637bd9b333d90d275c3ce9d2","body":"The test uses an entity with a sequence generator but the DDL uses identity generation. Obviously, there is a mismatch here and I don't see a bug. When you use `@GeneratedValue(strategy = IDENTITY)` on the entity along with `generated always as identity`, the validation will work.\r\n\r\nNo bug here, so I'll close this.","issue_id":1660161939639,"origin_id":1308924542,"user_origin_id":358916,"create_time":1668007244,"update_time":1668007244,"id":1669061043260,"updated_at":"2022-11-21T20:04:03.259000Z","created_at":"2022-11-21T20:04:03.259000Z"},{"_id":"637bd9b333d90d275c3ce9d3","body":"Also see https:\/\/github.com\/hibernate\/hibernate-orm\/pull\/5530","issue_id":1660161939639,"origin_id":1308949754,"user_origin_id":358916,"create_time":1668008273,"update_time":1668008273,"id":1669061043263,"updated_at":"2022-11-21T20:04:03.262000Z","created_at":"2022-11-21T20:04:03.262000Z"}] comment

Few months ago, commit 1db476db included the fixes for [HHH-12973](https://hibernate.atlassian.net/browse/HHH-12973). This commit also added the following change in `PostgreSQL81Dialect.java` ```java @Override public String getQuerySequencesString() { // return "select relname from...

5.4