Wouter Born
8672ed0208
Start license headers with /*
instead of /**
( #18061 )
...
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 22:33:03 +01:00
Wouter Born
d6476042ec
Update license headers to 2025 ( #18015 )
...
* Update license headers to 2025
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-02 00:30:12 +01:00
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
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
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
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
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
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
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
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
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
Jacob Laursen
0b59be62b6
Skip loading/migrating items with invalid name ( #14054 )
...
Fixes #14053
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-27 11:41:59 +01:00
Jacob Laursen
127f998a69
Upgrade MySQL Connector/J to 8.0.31 ( #13991 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-19 23:49:51 +01:00
Kai Takac
36137992a5
[jdbc] Update org.xerial/sqlite-jdbc to 3.40.0.0 ( #14003 )
...
* [jdbc] Update org.xerial/sqlite-jdbc to 3.40.0.0
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Kai Takac <kai.takac@gmail.com>
2022-12-18 19:04:43 +01:00
Jacob Laursen
a3fccc6390
Fix console command 'tables clean' ( #13916 )
...
NullPointerException was thrown because index table was not provided
Fixes #13911
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-11 22:47:37 +01:00
Jacob Laursen
dd8b7c8b65
[jdbc] Fix date filter to be inclusive (Derby) ( #13850 )
...
Fixes #9906
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-05 17:09:13 +01:00
Jacob Laursen
a0ac57cfd9
Fix date filter to be inclusive (PostgreSQL) ( #13843 )
...
Fixes #9906
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-05 00:27:54 +01:00
Jacob Laursen
312b4e2faf
Fix console command 'tables' for SQLite ( #13837 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-04 14:54:12 +01:00
Jacob Laursen
e979be4911
Fix Derby/H2/HSQLDB/SQLite queries for storing timestamps ( #13817 )
...
Fixes #13816
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-02 08:14:23 +01:00
dependabot[bot]
9cc3cd0cf9
[jdbc] Update PostgreSQL JDBC driver to 42.4.3 ( #13770 )
...
* Bump postgresql in /bundles/org.openhab.persistence.jdbc
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc ) from 42.4.1 to 42.4.3.
- [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.1...REL42.4.3 )
---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
dependency-type: direct:production
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-01 22:32:55 +01:00
Jacob Laursen
3912487305
[jdbc] Add safety valve for suspicious migrations ( #13797 )
...
* Abort migration from real names when most tables have table name prefix
* Add missing checks for database connection from console commands
* Add additional documentation for check/fix schema
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-28 23:38:55 +01:00
Jacob Laursen
22ea587d20
[jdbc] Add console command for checking/repairing schema integrity ( #13765 )
...
* Add console command for checking schema integrity
* Remove unneeded logging
* Add console command for fixing schema integrity
* Provide documentation
* Try to add support for Derby and PostgreSQL
* Sort alphabetically by item name
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-27 19:02:43 +01:00