Commit Graph

133 Commits

Author SHA1 Message Date
Jacob Laursen
7a3380a020 Use switch pattern matching
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-20 09:04:22 +01:00
Jacob Laursen
2ded1d14c9 Simplify DateTimeType handling for JDBC
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Holger Friedrich
639a1cb263
Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:30:05 +01:00
openhab-bot
f80fd3d18c [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 13:46:58 +00:00
joerg1985
58f59055a4
[persistence] Implement HistoricItem.getInstant (#17578)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-10-25 22:59:22 +02:00
Jacob Laursen
63cdc9576c
[jdbc] Fix case-sensitive table names for PostgreSQL (#17597)
* Fix case-sensitive table names for PostgreSQL

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-10-21 23:48:59 +02:00
JonathanvdGHU
e9a6cb68d8
[jdbc] Fix tableCaseSensitiveItemNames for PostgreSQL/TimescaleDB (#17587)
Signed-off-by: Jonathan van de Giessen <jonathan.vandegiessen@student.hu.nl>
2024-10-19 23:07:16 +02:00
lsiepel
20b889c029
Markdown Documentation fixes (#17526)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-10-10 22:42:51 +02:00
lsiepel
1a42353cc9
Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-09-28 17:46:53 +02:00
Mark Herwege
438541ab3c
[jdbc] revert db version variables (#17431)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-17 17:35:29 +02:00
Mark Herwege
c1dbc33cf3
[jdbc] Fix error in addon info for Oracle (#17403)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-11 18:54:22 +02:00
Mark Herwege
6f6787b794
[jdbc] Add Oracle DB support (#17317)
* Allow Oracle extensions to url definition

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-08 22:09:51 +02:00
lsiepel
5e0e9ce51e
Update lastnpe EEA to 2.4.0 (#16875)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-11 13:51:10 +02:00
lsiepel
71a208b91b
Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-07 23:20:16 +02:00
openhab-bot
4b5e4646ac [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 18:09:31 +00:00
Jacob Laursen
359d63f84d
Fix state and timestamp being discarded on store with alias (#16845)
Fixes #16844

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-06-05 18:32:53 +02:00
Jacob Laursen
e67675b745
Reduce the default character limit for VARCHAR columns in MySQL (#16680)
Resolves #13920

Resolves #16678

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-04-27 10:25:46 +02:00
Jacob Laursen
9a178cf1d5
Provide better MySQL datatype for DateTimeType (#16604)
Resolves #15697

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-04-02 23:42:49 +02:00
dependabot[bot]
fdb2bba7a6
[jdbc] Upgrade PostgreSQL JDBC driver to 42.4.4 (#16444)
* Bump org.postgresql:postgresql in /bundles/org.openhab.persistence.jdbc

Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.3 to 42.4.4.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.4.3...REL42.4.4)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-03-03 13:19:25 +01:00
Wouter Born
a2868bb0dc
Use diamond operator and remove redundant type arguments (#16249)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-09 23:46:15 +01:00
Jacob Laursen
f4596f581e
Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-01-01 18:14:57 +01:00
Jacob Laursen
990610703c
Upgrade MySQL Connector/J to 8.2.0 (#16132)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-12-29 16:02:37 +01:00
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00
Holger Friedrich
157d3d0141
addoninfo for new add-on suggestion finder "process" (#16031)
* addoninfo for new add-on suggestion finder "process"

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-16 10:53:37 +01:00
Jacob Laursen
2b0c805b33
[jdbc] Fix addon id for SQLite (#15877)
Fixes #15847

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-11-11 11:51:03 +01:00
J-N-K
91b294521e
Fix build after core changes (#15869)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-11-08 20:31:44 +01:00
Jacob Laursen
2df66bfee2
Process operations asynchronously (#15801)
Resolves #14927

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-11-03 19:29:05 +01:00
Jacob Laursen
0886a24182
[jdbc] Upgrade MySQL Connector/J to 8.1.0 (#15802)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-10-25 07:21:47 +02:00
Florian Hotze
7e1f4b0e1c
[persistence] Capitalize add-on names (#15378)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-10-10 14:04:21 +02:00
Wouter Born
1759058921
[jdbc] Upgrade H2 to 2.2.224 (#15726)
Upgrades H2 database from 1.4.191 to 2.2.224.

Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name.

Also fixes some queries used by the command extension because H2 always uses upper case table names.

For the change log, see:

https://h2database.com/html/changelog.html

For migration notes, see:

https://h2database.com/html/migration-to-v2.html

Fixes #13115

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-10 13:14:48 +02:00
Wouter Born
756b32d988
[jdbc] Fix logging not working (#15722)
The dependency change in #15659 caused slf4j to be embedded into the bundle.

As a result the bundle no longer uses Pax Logging so it cannot find an SLF4J provider and logs the following when it is installed:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-08 19:57:28 +02:00
Holger Friedrich
f24a4305b8
Improve javadoc for some addons (#15701)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-10-08 00:25:04 +02:00
Wouter Born
9d03ec9af5
Upgrade to Karaf 4.4.4 (#15659)
* Resolve itest runbundles
* Fix dependency issues
* Add specs features because Pax Web now depends on "asm"

Signed-off-by: Wouter Born <github@maindrain.net>
2023-09-30 07:38:19 +02:00
Jacob Laursen
619dd617aa
[jdbc] Improve conversion of database value to item state (#15434)
* Improve conversion of database value to item state
* Refactor test cases to reduce redundancy
* Refactor for type-safety
* Refactor type cast

Fixes #15433

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-09-23 17:34:06 +02:00
Holger Friedrich
1cf57e7dfe
[persistence] Use Java 17 features (#15486)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-26 08:56:27 +02:00
Holger Friedrich
5b42c4b071
Java 17 features (#15493)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-26 08:52:11 +02:00
Jacob Laursen
7ab04b20a1
[jdbc] Fix null annotation warnings (#15426)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-08-15 13:24:29 +02:00
Jacob Laursen
1fd7280c51
Upgrade SQLite JDBC driver to 3.42.0.0 (#15412)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-08-13 22:13:18 +02:00
Kai Kreuzer
72607d3bee Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:20:31 +02:00
openhab-bot
809fceaff3 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 19:19:01 +00:00
Robert D
99e78d84b5
fix timescale db type replacement (#15156)
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
2023-07-02 21:20:50 +02:00
J-N-K
d85bb786ad
[jdbc] Fix addon-info (#14987)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-13 20:55:31 +02:00
J-N-K
c3a9a4c7b6
Adjust to core changes (#14952)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-08 09:35:36 +02:00
Jacob Laursen
f9cc267190
Upgrade MySQL Connector/J to 8.0.33 (#14893)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-04-28 10:00:32 +02:00
Jacob Laursen
d7b94b6bd3
Upgrade MySQL Connector/J to 8.0.33 (#14874)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-04-25 07:45:00 +02:00
Ilias Ktn
a42b92b183
Working PostgreSQL Schema check/fix and set TIMESTAMPTZ to match MySQL defaults (#14294)
Signed-off-by: Ilias Kotinas <henfiber@gmail.com>
2023-02-02 08:27:16 +01:00
Ilias Ktn
29b17e9c75
Perform upsert on key conflict like the default for MySQL (PostgreSQL >= 9.5) (#14281)
Signed-off-by: Ilias Kotinas <henfiber@gmail.com>
2023-01-27 10:33:11 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00