#springdata — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #springdata, aggregated by home.social.
-
[Перевод] Победить Hibernate в тестах. Возможно?
Победить Hibernate в тестах. Сможем? Всем, привет! На связи Михаил Поливаха, технический лидер Open Source проекта Axelix (проект, посвященный помочь вам идентифицировать частые проблемы в Java server-side приложениях, в т.ч в рамках работы с Hibernate). Данная, последняя статья является продолжением небольшой серии статей ответов на вопросы, которые возникли у участников Spring АйО Академии в рамках программы Hibernate. Я рассмотрю оставшиеся последние вопросы, а именно: “Можно ли в тестах как-то проверить, что Hibernate под капотом делает что-то страшное?” Тут очень важно не давать вам “рыбу”, а научить вас рыбачить, т.е. дать вам некоторый фреймворк о том, что стоит держать в уме при работе с Hibernate.
https://habr.com/ru/companies/spring_aio/articles/1068176/
#java #hibernate #axelix #orm #sql #jpa #test #unittesting #springdata #springboot
-
[Перевод] Axelix выходит в общий доступ. Путь в тысячу миль начинается с первого шага
От имени основной команды Axelix и всех, кто внёс вклад в сообщество, я хочу заявить: мы наконец это сделали. Axelix, наконец, выходит в GA (Generally Available — общедоступная версия)! Для тех, кто не знает - Axelix это продукт с открытым (Open Source) ядром, который позволяет выявлять распространённые проблемы, подводные камни и неэффективности в Java-приложениях. Ядро продукта лежит на GitHub - можете использовать, это бесплатно. В этом посте я хочу поделиться историей и мотивацией, стоящей за продуктом в целом. Надеюсь, вам будет интересно.
https://habr.com/ru/companies/spring_aio/articles/1065202/
#java #springboot #springdata #springcloud #springsecurity #opensource
-
Что вам нужно знать про семантику List и Set в Hibernate
Привет, друзья! На связи Михаил Поливаха, технический лидер проекта Axelix . В рамках Spring АйО Академии я встречал большое количество похожих вопросов, посвященных правильному дизайну сущностей и другим похожим вопросам. Я обещался на все эти вопросы ответить в рамках статьи. На самом деле, одной статьи у меня не вышло, скорее всего, будет серия статей. Надеюсь, будет интересно :)
-
Когда Hibernate плевать на ваш OneToOne Lazy Loading
Привет, Друзья! На связи Михаил Поливаха, технический лидер проекта Axelix . В рамках программы Hibernate в Spring АйО Academy мы краем обсудили тему, касаемую того, что @OneToOne отличается от других отношений. В частности, Hibernate может спокойно грузить его Eagerly, даже если вы явно поставите FetchType.LAZY . У парней был закономерный вопрос - почему? И знаете, к моему удивлению, нормального материала в сети я не нашёл. В общем, решил выпустить статью, которая не просто отвечает на этот вопрос, а даёт прямо хороший, развернутый ответ на то, почему Hibernate это делает. Иными словами, я в статье постараюсь детально пояснить: Что на самом деле такое FetchType.LAZY ? Почему @OneToOne не всегда возможно сделать Lazy именно в Java ? Почему при этом @ManyToOne можно сделать Lazy всегда (предполагая не final класс сущности)? Разберём по шагам.
-
[Перевод] JPA 4. Переосмысление Hibernate
Данная статья является переводом анонса Гевина Кингa о релизе первого milestone JPA 4 спецификации и общего вектора развития JPA. Полноценная 4-ая версия JPA спецификации должна выйти чуть-чуть позже в этом году. Тем не менее, то, что сейчас в Milestone это основа, которая, возможно, с небольшими доработками, но уже пойдёт в релиз в этом году. От себя скажу, что данное обновление будет довольно крупное. Я оставил свои комментарии там, где посчитал уместным. P.S: У нас в рамках Spring АйО Академии как раз есть программа посвящённая Hibernate. В ней мы тоже затронем новую версию спецификации, в частности и работу со StatelessSession и EntityAgent на практике. Я думаю, что из всего апдейта, именно стандартизация работы без Persistence Context будет самым важным для прикладных разработчиков. Остальное тоже важно, но не так как работа с EntityAgent . Приятного чтения!
-
Hibernate merge: начали за здравие, закончили за упокой
Я уже давно хотел на этот счет написать статью. Она короткая,но имхо она нужна. Давайте с места в карьер: merge в Hibernate это не универсальный save , и чаще всего он Вам не нужен . На самом деле, если абстрагироваться, то это специализированная операция для случая, когда у вас есть detached-сущность , и вы хотите перенести ее состояние в текущий Persistence Context. Проблема в том, что на практике merge очень часто используют для апдейта любой сущности ( Spring Data JPA иногда так делает ) и как следствие получают лишние SQL-запросы. Ниже разберем на мой взгляд главное - почему именно так происходит , где merge действительно нужен, а где он превращается в антипаттерн (P.S да почти везде).
-
Check out what's new in the #Spring community 👉 https://bit.ly/3NMwcbY
The third milestone releases of: Spring Boot, Spring Security, Spring Integration, Spring AI and Spring AMQP; along with the second milestone releases of Spring Data and Spring for Apache Kafka.
#Java #SpringBoot #SpringData #SpringSecurity #SpringAI #SpringVault #ApacheKafka
-
Check out what's new in the #Spring community 👉 https://bit.ly/3NMwcbY
The third milestone releases of: Spring Boot, Spring Security, Spring Integration, Spring AI and Spring AMQP; along with the second milestone releases of Spring Data and Spring for Apache Kafka.
#Java #SpringBoot #SpringData #SpringSecurity #SpringAI #SpringVault #ApacheKafka
-
Check out what's new in the #Spring community 👉 https://bit.ly/4kZSJyw
The second milestone releases of: Spring Boot, Spring Security, Spring Integration, Spring Modulith and Spring AMQP; along with the first milestone releases of Spring Session, Spring for Apache Kafka and Spring LDAP.
#Java #SpringBoot #SpringData #SpringSecurity #SpringAMQP #ApacheKafka
-
Check out what's new in the #Spring community 👉 https://bit.ly/4kZSJyw
The second milestone releases of: Spring Boot, Spring Security, Spring Integration, Spring Modulith and Spring AMQP; along with the first milestone releases of Spring Session, Spring for Apache Kafka and Spring LDAP.
#Java #SpringBoot #SpringData #SpringSecurity #SpringAMQP #ApacheKafka
-
What if most transactions never needed retries at all? @FranckPachot shows how #MongoDB’s single-document atomic updates eliminate deadlocks completely—even under high load.
See the #SpringData example: https://javapro.io/2025/12/18/no-deadlocks-in-mongodb-atomic-documents-and-retries-with-spring-data-mongodb/
-
What if most transactions never needed retries at all? @FranckPachot shows how #MongoDB’s single-document atomic updates eliminate deadlocks completely—even under high load.
See the #SpringData example: https://javapro.io/2025/12/18/no-deadlocks-in-mongodb-atomic-documents-and-retries-with-spring-data-mongodb/
-
Today marks the 18th anniversary of the first commit of what should eventually become Spring Data JPA. What a ride! 🥳🍃🛢️ https://github.com/synyx/hades/commit/fca7af83e57188097310e50a30670360853b57ff #SpringData #JPA #Synyx
-
Today marks the 18th anniversary of the first commit of what should eventually become Spring Data JPA. What a ride! 🥳🍃🛢️ https://github.com/synyx/hades/commit/fca7af83e57188097310e50a30670360853b57ff #SpringData #JPA #Synyx
-
Suchen und Finden - Elasticsearch effizient einsetzen
-
[Перевод] Как ускорить MongoDB в Java: profiling, explain(), индексация и антипаттерны
Команда Spring АйО подготовила материал о том, почему «быстрый запрос в MongoDB» — это не магия, а дисциплина: индексы, форма запроса, проекции, explain(), профайлер и наблюдаемость в Java/Spring Boot. Разбираем, как отличать IXSCAN от COLLSCAN, где чаще всего прячутся антипаттерны (skip-пагинация, тяжёлые $regex/$nin, findAll), и как выстроить измеримый цикл оптимизаций от Atlas/Compass до Micrometer.
https://habr.com/ru/companies/spring_aio/articles/979440/
#MongoDB #производительность #индексы #explain #IXSCAN #COLLSCAN #SpringBoot #SpringData #профайлинг #мониторинг
-
Why do SQL #Databases wait seconds on deadlocks? @FranckPachot contrasts pessimistic locking with #MongoDB’s lock-free concurrency & shows how retries replace waits. Want lower latency under contention?
-
Why do SQL #Databases wait seconds on deadlocks? @FranckPachot contrasts pessimistic locking with #MongoDB’s lock-free concurrency & shows how retries replace waits. Want lower latency under contention?
-
Still fighting deadlocks in SQL databases? @FranckPachot explains why #MongoDB avoids them entirely & how atomic documents & retryable transactions with #SpringData deliver predictable latency. Curious how it works in practice?
-
Still fighting deadlocks in SQL databases? @FranckPachot explains why #MongoDB avoids them entirely & how atomic documents & retryable transactions with #SpringData deliver predictable latency. Curious how it works in practice?
-
Почему Я выбираю Spring Data JDBC
Реляционные базы данных по-прежнему остаются главным хранилищем наших данных. А значит, вопрос выбора инструмента отображения данных из БД на уровне приложения - всё так же актуален. Долгое время я выбирал: Spring Data JPA. Уверен, что большинства из вас — тоже. Но времена меняются, и в 2025 для своих новых проектов я использую — Spring Data JDBC. Почему? Если вам стало любопытно — добро пожаловать под кат.
https://habr.com/ru/companies/haulmont/articles/973124/
#jpa #springdata #jdbc #hibernate #java #spring #orm #springboot
-
[Перевод] ORM это Вьетнамcкая Война Компьютерных Наук
Данная публикация является переводом статьи Jeff-a Atwood-а почти 20-ти летней давности. Jeff Atwood, один из фаундеров StackOverFlow, написал эту статью как некоторое резюме того, как человечество боролось с проблемой O/R Impedance Mismatch. Я частично принимаю участие в написании разных ORM решений, например, Spring Data JDBC / R2DBC , и скоро
https://habr.com/ru/companies/spring_aio/articles/972316/
#java #orm #springdata #hibernate #jdbc #jooq #database #rdbms
-
Still wondering when to use #JDBC #JPA, or just plain #SQL? @FranckPachot gives devs a map: when to abstract, when to go low-level, & when to leave SQL behind. No more guesswork. Just better architecture.
Read #JAVAPRO: https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/
@Hibernate #SpringData #ORM #NoSQL
-
Still wondering when to use #JDBC #JPA, or just plain #SQL? @FranckPachot gives devs a map: when to abstract, when to go low-level, & when to leave SQL behind. No more guesswork. Just better architecture.
Read #JAVAPRO: https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/
@Hibernate #SpringData #ORM #NoSQL
-
How did Java go from applets to #SpringData & vector #Databases? From EJBs to JPA, the tools have evolved. What’s next in a world of #AI & #VectorSearch?
Raphael DeLio & Brian Sam-Bodden explore the journey ahead.Read now: https://javapro.io/2025/05/21/a-look-back-at-javas-30-year-journey-with-databases/
-
How did Java go from applets to #SpringData & vector #Databases? From EJBs to JPA, the tools have evolved. What’s next in a world of #AI & #VectorSearch?
Raphael DeLio & Brian Sam-Bodden explore the journey ahead.Read now: https://javapro.io/2025/05/21/a-look-back-at-javas-30-year-journey-with-databases/
-
Jakarta Data. Что это означает для Java-сообщества
Большинство enterprise-приложений работают с БД в том или ином виде. Чаще всего в качестве БД выступает реляционная DBMS, например, PostgreSQL или Oracle. Относительно часто для доступа к данным используют Hibernate. Ранее он предлагал только одну спецификацию — JPA (Java Persistence API), она же Jakarta. Но теперь Hibernate реализует ещё и Jakarta Data. Jakarta Data — это новая спецификация под зонтиком проекта Jakarta EE (как и JPA), которая упрощает интеграцию данных в корпоративных Java-приложениях. Обе эти спецификации разрабатывает Eclipse Foundation, и в частности Gavin King, создатель Hibernate. Большинство разработчиков привыкли работать с Hibernate именно через Spring Data JPA. Изначально, когда только обсуждали спецификацию Jakarta Data, Spring Data ( не обязательно JPA ) была одним из тех проектов, который, в перспективе, мог бы реализовать спецификацию Jakarta Data. Но этого не произошло, и, несмотря на то, что изначально команда Spring Data была вовлечена в процесс создания спецификации, они отказались от идеи реализовывать Jakarta Data, и та стала развиваться самостоятельно. Сегодня Jakarta Data применяют в Hibernate, Open Liberty и ряде более мелких решений. Как же так вышло? Меня зовут Михаил Поливаха, я практикующий инженер и активный коммитер Spring Data. В этой статье я расскажу об особенностях Jakarta Data, как она появилась и чем отличается от конкурентных решений. Я также расскажу, что помешало команде Spring Data реализовать Jakarta Data, и что же нас ждёт дальше.
-
If your app breaks when the DB changes—you’re not alone. @FranckPachot shows how shifting from DB-first to #JPA-first solved and created problems.
Build schema-resilient Java apps that scale. One read = fewer production bugs
https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/@Hibernate #SpringData #ORM
-
If your app breaks when the DB changes—you’re not alone. @FranckPachot shows how shifting from DB-first to #JPA-first solved and created problems.
Build schema-resilient Java apps that scale. One read = fewer production bugs
https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/@Hibernate #SpringData #ORM
-
Tired of fighting #ORM magic, broken #SQL mappings & runtime surprises? @FranckPachot lays out why these issues exist and how to regain control.
From #JDBC to #SpringData to #NoSQL—here’s what actually works in 2025.👉 Know your tools: https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/
@springcentral
-
Tired of fighting #ORM magic, broken #SQL mappings & runtime surprises? @FranckPachot lays out why these issues exist and how to regain control.
From #JDBC to #SpringData to #NoSQL—here’s what actually works in 2025.👉 Know your tools: https://javapro.io/2025/06/19/java-and-databases-from-sql-to-jpa-and-nosql/
@springcentral
-
#SpringData introduces Ahead of Time Repositories https://spring.io/blog/2025/05/22/spring-data-ahead-of-time-repositories
-
#SpringData introduces Ahead of Time Repositories https://spring.io/blog/2025/05/22/spring-data-ahead-of-time-repositories
-
This year you can meet both our organizers at #springio25 in Barcelona🥳
@thjanssen123 will do a full day workshop about #spring data #jpa and a regular session why spring data jpa might the cause of death for your application. @atomfrede will do a talk about how #hypermedia and #htmx can simplify your everyday #webDevelopmentWho else will be there? #SpringData #springboot #java #community #hibernate
-
This year you can meet both our organizers at #springio25 in Barcelona🥳
@thjanssen123 will do a full day workshop about #spring data #jpa and a regular session why spring data jpa might the cause of death for your application. @atomfrede will do a talk about how #hypermedia and #htmx can simplify your everyday #webDevelopmentWho else will be there? #SpringData #springboot #java #community #hibernate
-
Dive into the latest releases from #Spring 👉 https://bit.ly/3EJAUTq
First release candidates of Spring Boot, Spring Data 2025.0.0, Spring Security, Spring Authorization Server, Spring Session, Spring Integration, Spring Modulith & Spring Web Services.
#Java #SpringBoot #SpringData #SpringSecurity #SpringModulith #SpringVault #SpringFramework
-
Dive into the latest releases from #Spring 👉 https://bit.ly/3EJAUTq
First release candidates of Spring Boot, Spring Data 2025.0.0, Spring Security, Spring Authorization Server, Spring Session, Spring Integration, Spring Modulith & Spring Web Services.
#Java #SpringBoot #SpringData #SpringSecurity #SpringModulith #SpringVault #SpringFramework
-
At this point I'm contemplating rewriting this small #Quarkus application in #SpringBoot.
Every step on the way I'm running into some unsupported things.
Latest frustration: The Quarkus #Redis extension (based on Vert.x Redis 4.x) doesn't support Amazon #IAM. This will be supported in version 5. 🙃
While at the same time there's an official example from #AWS for Lettuce (which #SpringData Redis is based on).
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth-iam.html
-
At this point I'm contemplating rewriting this small #Quarkus application in #SpringBoot.
Every step on the way I'm running into some unsupported things.
Latest frustration: The Quarkus #Redis extension (based on Vert.x Redis 4.x) doesn't support Amazon #IAM. This will be supported in version 5. 🙃
While at the same time there's an official example from #AWS for Lettuce (which #SpringData Redis is based on).
https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth-iam.html
-
New tutorial. Utilising Spring Data's `RepositoryDefinition`.
https://rashidi.github.io/spring-boot-tutorials/data-repository-definition/
I wrote the code and Junie (of JetBrains) wrote the article. Amazing assistant!
#tutorial #java #spring-data #SpringData
-
New tutorial. Utilising Spring Data's `RepositoryDefinition`.
https://rashidi.github.io/spring-boot-tutorials/data-repository-definition/
I wrote the code and Junie (of JetBrains) wrote the article. Amazing assistant!
#tutorial #java #spring-data #SpringData
-
I've been coding in the .NET ecosystem most of my professional career, and I still love it. If in doubt, it's still my go-to framework. BUT! I've been playing with Java, Spring, Spring Boot, and Spring Data for a few days now, and I must say that it is super convenient and nice to work with. My next pet project will definitely be done in the Spring ecosystem.
#java #spring #springBoot #springData #coding #dotnet -
I've been coding in the .NET ecosystem most of my professional career, and I still love it. If in doubt, it's still my go-to framework. BUT! I've been playing with Java, Spring, Spring Boot, and Spring Data for a few days now, and I must say that it is super convenient and nice to work with. My next pet project will definitely be done in the Spring ecosystem.
#java #spring #springBoot #springData #coding #dotnet -
Dive into the latest releases from #Spring 👉 https://bit.ly/3QuNKaD
Releases of: Spring Boot, Spring Security, Spring Authorization Server, Spring Integration, Spring AI and Spring AMQP.
Many of these releases are included in Spring Boot 3.5.0-M2, 3.4.3 & 3.3.9.
#Java #SpringData #SpringCloud #SpringBoot #SpringFramework #SpringSecurity
-
Dive into the latest releases from #Spring 👉 https://bit.ly/3QuNKaD
Releases of: Spring Boot, Spring Security, Spring Authorization Server, Spring Integration, Spring AI and Spring AMQP.
Many of these releases are included in Spring Boot 3.5.0-M2, 3.4.3 & 3.3.9.
#Java #SpringData #SpringCloud #SpringBoot #SpringFramework #SpringSecurity
-
Today marks the 17th anniversary of the first commit to what should eventually become #SpringData #JPA, and, with that, form the primary abstraction that Spring Data is known generally for. Glad it aged so well. And thanks to @synyx for giving me the opportunity! 🙇☺️🍃🛢️ https://github.com/synyx/hades/commit/fca7af83e57188097310e50a30670360853b57ff
-
Extending #SpringData Repositories Just Got Easier via @mp911de
https://spring.io/blog/2024/12/03/extending-spring-data-repositories-just-got-easier
-
Dive into the latest releases from #Spring! https://bit.ly/3MmKYlr
Spring Boot, Spring Data, Spring Cloud, Spring Security, Spring Authorization Server, Spring Session, Spring for Apache Kafka & Spring for Apache Pulsar.
#Java #SpringData #SpringCloud #SpringBoot #SpringFramework #SpringSecurity
-
I’m on a boat. With Mr. #SpringData @mp911de himself. Lovely day.
-
If you're using Hibernate to avoid SQL, think again. It's a leaky abstraction by design, expecting you to be versed in SQL for maximum power and performance. #Hibernate #JPA #SpringData #SQL https://medium.com/javarevisited/hibernate-isnt-object-oriented-don-t-try-to-make-it-oop-631c53253099
-
I'm back on the upgrades today. So far, a weird little bug with Spring data and `.deleteAll` on a JPA repository.
If you instead get them all and call `delete()` on each, it works?
🤔
#Java #Spring #SpringData #SQL #Tech -
Find 👇 a summary of all the tips and good practices I usually recommend/apply when #spring #SpringData / #JPA queries tend to be slow and affect the performance of your #Java platform.
https://blog.touret.info/2024/03/25/jpa_spring_data_query_optimisations/
-
Almost a classic: someone pinpointing a problem to the persistence layer when it actually resides in the model. And of course, getting a lot of advice on how to “fix” the persistence layer. There's a German word for trying to improve things but actually worsening them: “verschlimmbessern”.
Left my two cents, too: https://stackoverflow.com/questions/45491551/refresh-and-fetch-an-entity-after-save-jpa-spring-data-hibernate/78198762#78198762 #springdata #ddd
-
In our #JAVAPRO article, @JohannesRabauer explores the innovative approach of #SpringData #EclipseStore in minimizing #CloudStorage expenses. Read the full analysis now: https://javapro.io/kostenminimierung-durch-nutzung-von-cloud-speicher-mit-spring-data-eclipse-store/
#Java #Microstream #OpenSource #Performance @EclipseStoreIO @microstreamOne
-
Spring survey 2024 is here. Let us know what you like about Spring, its portfolio, and how we can improve so you become more productive.
#spring #springboot #springdata #springsecurity #springcloud
-
Great session about @EclipseStoreIO from @JohannesRabauer at Bangalore Java User Group (@bangalorejug). The team at @XDEVSoftware created a Spring Data Drop-in Integration for EclipseStore: https://github.com/xdev-software/spring-data-eclipse-store