Project

General

Profile

Actions

task #10067

closed

Update to hibernate 5.4 (or higher) and hibernate search 5.11 and lucene 5.5

Added by Andreas Müller over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Priority14
Category:
cdmlib
Target version:
Start date:
05/23/2022
Due date:
06/01/2022
% Done:

100%

Estimated time:
Severity:
normal

Description

https://stackoverflow.com/questions/50207195/how-to-upgrade-hibernate-from-version-4-3-to-5-2-for-migration-to-jdk-10

https://github.com/hibernate/hibernate-orm/blob/5.2/migration-guide.adoc
https://github.com/hibernate/hibernate-orm/wiki/Migration-Guides
https://mvnrepository.com/artifact/org.hibernate/hibernate-core/5.2.18.Final
https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc

Open issues:

  • deprecated calls in CdmEntityDaoBase (and maybe others), e.g. line 447 / createCriteria (deprecated) => #10124
  • check if FlushMode can be changed to JPA Flush Mode => #10124
  • sortindex handling in TaxonNode, TermNode, PKNode => still needs code cleanup
  • Problems with sessionFactory.getAllClassMetadata();
    • CdmModelCacher
    • ReferringObjectMetadataFactoryImpl => failing test in persistence
  • lucene: -misapplied name search
  • check if AbstractPersistentCollection and AbstractLazyInitializer in TaxEditor needs to be adapted
  • bytebuddy deserialization exception for (#10075)

hibernate 5.3:

  • hibernate sequence tables

TODO before closing:

  • adapt javassist where possible
  • read all migration guides carefully again
  • problems with DdlCreate (JDBC connection and no build whith cleanup in IDE) - not sure if they are related to the hibernate changes
  • remove constructs similar to „new " + SortableTaxonNodeQueryResult.class.getName() in HQL Queries

Related issues

Related to EDIT - task #9359: Update cdmlib, taxeditor, cdmserver etc. dependenciesClosedAndreas Müller

Actions
Related to EDIT - task #8127: [Reminder] to check if Hibernate Null Value bug still existsDiscussedAndreas Müller05/23/202205/27/2022

Actions
Related to EDIT - feature request #7648: Create taxonrelation to genus or species when subordinate names are createdResolvedAndreas Müller

Actions
Related to EDIT - task #3722: Using @OrderColumn does not work in treesClosedAndreas Müller05/23/202205/27/2022

Actions
Related to EDIT - feature request #10069: Upgrade hibernate search and lucene to hs6+ and lucene 8+NewAndreas Müller

Actions
Related to EDIT - feature request #10070: Upgrade to hibernate 6+NewAndreas Müller

Actions
Related to EDIT - task #10009: Cleanup dependencies in TaxEditorClosedAndreas Müller05/10/202205/13/2022

Actions
Related to EDIT - task #10077: upgrade ehcache to 3.xNewAndreas Müller

Actions
Related to EDIT - bug #10079: Fix timezone problems after upgrading jadira.usertype, hibernate and/or mysql driversIn ProgressKatja Luther

Actions
Related to EDIT - task #10094: Reenabel anttask for 001-cdm.h2.sql creationNewAndreas Müller

Actions
Related to EDIT - bug #10114: Problem with parser for author string with whitespace between initialsClosedAndreas Müller

Actions
Copied to EDIT - task #10104: Cleanup after hibernate v5.4.33 migrationNewAndreas Müller

Actions
Copied to EDIT - task #10124: Adapt deprecated hibernate methods to suggested new methodsIn ProgressKatja Luther

Actions
Actions #1

Updated by Andreas Müller over 1 year ago

  • Related to task #9359: Update cdmlib, taxeditor, cdmserver etc. dependencies added
Actions #2

Updated by Andreas Müller over 1 year ago

  • Due date set to 05/27/2022
  • Start date set to 05/23/2022
Actions #3

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #4

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #5

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #6

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #7

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #8

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #9

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #10

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #11

Updated by Andreas Müller over 1 year ago

mvn clean install –fail-never (or just –fn)

https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html

mvn clean -Dtest=AnnotationDaoTest,CdmEntityDaoBaseTest,TaxonGraphTest test

Actions #12

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #13

Updated by Andreas Müller over 1 year ago

  • Related to task #8127: [Reminder] to check if Hibernate Null Value bug still exists added
Actions #14

Updated by Andreas Müller over 1 year ago

  • Related to feature request #7648: Create taxonrelation to genus or species when subordinate names are created added
Actions #15

Updated by Andreas Müller over 1 year ago

  • Related to task #3722: Using @OrderColumn does not work in trees added
Actions #16

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #17

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #18

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #19

Updated by Andreas Müller over 1 year ago

Actions #20

Updated by Andreas Müller over 1 year ago

  • Subject changed from Update to hibernate 5.2 (or higher) to Update to hibernate 5.4 (or higher) and hibernate search 5.11 and lucene 5.5
  • Due date changed from 05/27/2022 to 06/01/2022
  • Status changed from New to In Progress
  • % Done changed from 0 to 60
Actions #21

Updated by Andreas Müller over 1 year ago

Actions #22

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #23

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #24

Updated by Andreas Müller over 1 year ago

  • Related to task #10009: Cleanup dependencies in TaxEditor added
Actions #25

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #26

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #27

Updated by Andreas Müller over 1 year ago

Actions #28

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #29

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #30

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #31

Updated by Andreas Müller over 1 year ago

  • Related to bug #10079: Fix timezone problems after upgrading jadira.usertype, hibernate and/or mysql drivers added
Actions #32

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions #33

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions #34

Updated by Andreas Müller about 1 year ago

  • Copied to task #10104: Cleanup after hibernate v5.4.33 migration added
Actions #35

Updated by Andreas Müller about 1 year ago

  • Related to task #10094: Reenabel anttask for 001-cdm.h2.sql creation added
Actions #36

Updated by Andreas Müller about 1 year ago

  • Status changed from In Progress to Resolved
  • Priority changed from New to Highest

Should be resolved. All open issues moved to #10104.

Still need to check the

TypedQuery<String[]>

issue.

Actions #37

Updated by Andreas Müller about 1 year ago

  • Priority changed from Highest to Priority14
  • % Done changed from 60 to 90

Andreas Müller wrote in #note-36:

Should be resolved. All open issues moved to #10104.

Still need to check the

TypedQuery<String[]>

issue.

Does not exist anymore

Actions #38

Updated by Andreas Müller about 1 year ago

  • Assignee changed from Andreas Müller to Katja Luther

Please review and check if there is any remaining issue not mentioned in followup ticket #10104.

Close afterwards.

Actions #39

Updated by Andreas Müller about 1 year ago

  • Related to bug #10114: Problem with parser for author string with whitespace between initials added
Actions #40

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions #41

Updated by Andreas Müller about 1 year ago

  • Copied to task #10124: Adapt deprecated hibernate methods to suggested new methods added
Actions #42

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions #43

Updated by Andreas Müller about 1 year ago

  • Status changed from Resolved to Closed
  • Assignee changed from Katja Luther to Andreas Müller
  • % Done changed from 90 to 100

All open issues moved to follow up ticket #10104 or related tickets

Actions #44

Updated by Katja Luther about 1 year ago

  • Description updated (diff)
Actions #45

Updated by Katja Luther about 1 year ago

  • Description updated (diff)
Actions

Also available in: Atom PDF