obiba / opal

OBiBa’s core database application for biobanks or epidemiological studies.
http://www.obiba.org/pages/products/opal/
GNU General Public License v3.0
28 stars 22 forks source link

[4.6.4] Hibernate warnings(HHH90000022) about deprecated usages #3813

Closed tuxmaster5000 closed 8 months ago

tuxmaster5000 commented 8 months ago

This issue is unique

Version information

4.6.4

Expected behavior

Not warnings about deprecated calls.

Actual behavior

Lot of warnings in the log file: 2023-10-18 08:41:39,165 [qtp217062446-5485] WARN org.hibernate.orm.deprecation - HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead

Reproduction steps

There is no "standard way" to reproduce it. It will shown randomly in the log.

Operating System (OS)

Linux

Browser

FireFox

Contact info

No response

ymarcon commented 8 months ago

We do not recommend using the Hibernate based SQL schema, use "Tabular SQL" schema instead. Hibernate is hard to maintain and this SQL schema has poor performance.

tuxmaster5000 commented 8 months ago

Ok, that can be, but how to convert the existing "Opal SQL" to "Tabular SQL" schema? I don't see any convert function.

ymarcon commented 8 months ago

There is no "conversion" per say, you can use the project backup/restore feature instead. Or copy the tables into another project.

tuxmaster5000 commented 8 months ago

I will forward this to the scientists for testing.

sofiasiamp commented 8 months ago

Hi, and thank you for your help! I tried to do the "conversion": with project backup/restore:

with copy: When attempting to copy a table from one project to another, it works. I can see all values and variables. The only issue is that I get an error in the Tasks tab: image

sofiasiamp commented 8 months ago

I now tested it with Opal Python Client and this method works!