diff --git a/pl/java/libfws/io/file-formats/json/jackson/features/config.txt b/pl/java/libfws/io/file-formats/json/jackson/features/config.txt new file mode 100644 index 000000000..ebd1d3c15 --- /dev/null +++ b/pl/java/libfws/io/file-formats/json/jackson/features/config.txt @@ -0,0 +1,3 @@ +https://www.baeldung.com/spring-boot-customize-jackson-objectmapper + +spring.jackson.default-property-inclusion=always, non_null, non_absent, non_default, non_empty diff --git a/pl/java/libfws/spring/data/jdbc/docs/presentations.txt b/pl/java/libfws/spring/data/jdbc/docs/presentations.txt index 724ca39ee..b540bb038 100644 --- a/pl/java/libfws/spring/data/jdbc/docs/presentations.txt +++ b/pl/java/libfws/spring/data/jdbc/docs/presentations.txt @@ -1,7 +1,15 @@ 2024 -SpringDeveloper - Spring Tips: Spring Data JDBC 0:00 of 27:35 +SpringDeveloper - Long - Spring Tips: Spring Data JDBC 0:00 of 27:35 https://www.youtube.com/watch?v=srBYXhhLVV4 + ! using records, cache +JPoint - Polivaha - Spring Data JDBC Problems 0:00 of 52:26 + https://www.youtube.com/watch?v=dfANAAxfQ2c + https://jpoint.ru/archive/2024/talks/cd59886578984e3b8edb76f85ae4aea8 +2023 +https://www.youtube.com/playlist?list=PLbuI9mmWSoUFGL6B_NxB9IoGqyDq-vEen 2022 +DanVega - Spring Data JDBC Tutorial: How to simplify data access in Spring Boot 0:00 of 41:47 + https://www.youtube.com/watch?v=l_T0nQNbFiM TechTrain - Belyaev - Exchange Spring Data JPA to Spring Data JDBC 0:00 of 1:01:52 https://www.youtube.com/watch?v=WB8S_miQNvM https://squidex.jugru.team/api/assets/srm/ef7583f9-e5eb-49a3-b04b-36b3c670f627/6bda9419-2b7c-409b-943a-a42a0124e286.pdf diff --git a/pl/java/libfws/spring/data/jdbc/features/internals/articles.txt b/pl/java/libfws/spring/data/jdbc/features/internals/articles.txt new file mode 100644 index 000000000..bf5a2d8cc --- /dev/null +++ b/pl/java/libfws/spring/data/jdbc/features/internals/articles.txt @@ -0,0 +1,2 @@ +???? +https://temofeev.ru/info/articles/kak-spring-data-jdbc-soedinyaet-tablitsy/ diff --git a/pl/java/libfws/spring/data/jdbc/features/internals/presentations.txt b/pl/java/libfws/spring/data/jdbc/features/internals/presentations.txt new file mode 100644 index 000000000..869c13be4 --- /dev/null +++ b/pl/java/libfws/spring/data/jdbc/features/internals/presentations.txt @@ -0,0 +1,6 @@ +2020 +Petrelevich - Spring Data JDBC of p3 + https://www.youtube.com/playlist?list=PLfj4GrGKdyavcnfWnOO7d-MRFJcIAqxWO + https://vk.com/@javatutorial-kak-spring-data-jdbc-opredelyaet-chto-obekt-novyi + BasicPersistenceEntity -> Persistable i-face + PersistenceEntityIsNewStrategy diff --git a/pl/java/libfws/spring/data/jdbc/features/mapping-relations.txt b/pl/java/libfws/spring/data/jdbc/features/mapping-relations.txt new file mode 100644 index 000000000..982f85d2c --- /dev/null +++ b/pl/java/libfws/spring/data/jdbc/features/mapping-relations.txt @@ -0,0 +1,23 @@ +https://docs.spring.io/spring-data/relational/reference/jdbc/mapping.html + +2022 +TechTrain - Belyaev - Exchange Spring Data JPA to Spring Data JDBC 0:00 of 1:01:52 + https://www.youtube.com/watch?v=WB8S_miQNvM + https://squidex.jugru.team/api/assets/srm/ef7583f9-e5eb-49a3-b04b-36b3c670f627/6bda9419-2b7c-409b-943a-a42a0124e286.pdf +https://www.youtube.com/watch?v=l_T0nQNbFiM + Persisting Entities + AggregatedReference<,> +https://spring.io/blog/2022/01/20/spring-data-jdbc-how-can-i-do-a-partial-update-of-an-aggregate-root +2021 +https://spring.io/blog/2021/09/22/spring-data-jdbc-how-do-i-make-bidirectional-relationships + internal rel + https://github.com/spring-projects/spring-data-examples/tree/main/jdbc/howto/bidirectionalinternal + https://github.com/spring-projects/spring-data-examples/blob/main/jdbc/howto/bidirectionalinternal/src/main/java/example/springdata/jdbc/howto/bidirectionalinternal/Minion.java + https://github.com/spring-projects/spring-data-examples/blob/main/jdbc/howto/bidirectionalinternal/src/main/java/example/springdata/jdbc/howto/bidirectionalinternal/Toy.java + external rel + https://github.com/spring-projects/spring-data-examples/tree/main/jdbc/howto/bidirectionalexternal + https://github.com/spring-projects/spring-data-examples/blob/main/jdbc/howto/bidirectionalexternal/src/test/java/example/springdata/jdbc/howto/bidirectionalexternal/BidirectionalApplicationTests.java + https://github.com/spring-projects/spring-data-examples/blob/main/jdbc/howto/bidirectionalexternal/src/main/java/example/springdata/jdbc/howto/bidirectionalexternal/Minion.java +???? +https://temofeev.ru/info/articles/kak-spring-data-jdbc-soedinyaet-tablitsy/ + MappedCollection diff --git a/pl/java/libfws/spring/data/jdbc/features/query-params-jdbc-types.txt b/pl/java/libfws/spring/data/jdbc/features/type/enum.txt similarity index 90% rename from pl/java/libfws/spring/data/jdbc/features/query-params-jdbc-types.txt rename to pl/java/libfws/spring/data/jdbc/features/type/enum.txt index 65a98b812..c3e32b402 100644 --- a/pl/java/libfws/spring/data/jdbc/features/query-params-jdbc-types.txt +++ b/pl/java/libfws/spring/data/jdbc/features/type/enum.txt @@ -1,5 +1,22 @@ ERROR: operator does not exist: = character varying Hint: No operator matches the given name and argument types. You might need to add explicit type casts. +https://www.postgresql.org/docs/current/datatype-enum.html +https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/java/sql/JDBCType.html + +https://stackoverflow.com/questions/851758/java-enums-jpa-and-postgres-enums-how-do-i-make-them-work-together + jdbc-url:...&stringtype=unspecified + https://postgrespro.ru/list/thread-id/1932527 + https://jdbc.postgresql.org/documentation/use/ + spring: + datasource: + hikari: + data-source-properties: + stringtype=unspecified + PGPreparedStatement + private int getStringType() { + return connection.getStringVarcharFlag() ? Oid.VARCHAR : Oid.UNSPECIFIED; + } + https://github.com/spring-projects/spring-data-relational/issues/1136 https://github.com/spring-projects/spring-data-relational/pull/1517 diff --git a/pl/java/libfws/spring/data/jdbc/features/type/types.txt b/pl/java/libfws/spring/data/jdbc/features/type/types.txt new file mode 100644 index 000000000..f451648d7 --- /dev/null +++ b/pl/java/libfws/spring/data/jdbc/features/type/types.txt @@ -0,0 +1,5 @@ +java.sql.JDBCType +java.sql.Types + 12 VARCHAR + +org.postgresql.core.Oid diff --git a/pl/java/libfws/spring/data/jpa/features/log-sql.txt b/pl/java/libfws/spring/data/jpa/features/log-sql.txt index f07ed3f00..43c0b2726 100644 --- a/pl/java/libfws/spring/data/jpa/features/log-sql.txt +++ b/pl/java/libfws/spring/data/jpa/features/log-sql.txt @@ -15,10 +15,14 @@ https://bootcamptoprod.com/spring-boot-data-jpa-print-sql-queries/ 2022 https://www.baeldung.com/hibernate-logging-levels https://www.baeldung.com/sql-logging-spring-boot2022 - - logging.level.org.hibernate.SQL=DEBUG - logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE - logging.level.org.springframework.jdbc.core.JdbcTemplate=DEBUG - logging.level.org.springframework.jdbc.core.StatementCreatorUtils=TRACE ???? https://sky.pro/wiki/java/otobrazhenie-sql-zaprosov-iz-jpa-v-ide-reshenie-bez-dostupa-k-bd/ + +logging.level: + org.hibernate.SQL: DEBUG + org.hibernate.type.descriptor.sql.BasicBinder: TRACE + org.hibernate.transaction: DEBUG + org.hibernate.engine.transaction.internal.TransactionImpl: DEBUG +logging.level: + org.springframework.jdbc.core.JdbcTemplate=DEBUG + org.springframework.jdbc.core.StatementCreatorUtils=TRACE diff --git a/pl/java/libfws/spring/data/jpa/features/converter.txt b/pl/java/libfws/spring/data/jpa/features/types/converter.txt similarity index 100% rename from pl/java/libfws/spring/data/jpa/features/converter.txt rename to pl/java/libfws/spring/data/jpa/features/types/converter.txt diff --git a/pl/java/libfws/spring/data/jpa/features/types/enums.txt b/pl/java/libfws/spring/data/jpa/features/types/enums.txt new file mode 100644 index 000000000..e2e245f7b --- /dev/null +++ b/pl/java/libfws/spring/data/jpa/features/types/enums.txt @@ -0,0 +1 @@ +https://www.baeldung.com/java-enums-jpa-postgresql diff --git a/pl/java/libfws/spring/data/jpa/features/records.txt b/pl/java/libfws/spring/data/jpa/features/types/records.txt similarity index 100% rename from pl/java/libfws/spring/data/jpa/features/records.txt rename to pl/java/libfws/spring/data/jpa/features/types/records.txt