home.social

#springdata — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #springdata, aggregated by home.social.

fetched live
  1. [Перевод] Победить Hibernate в тестах. Возможно?

    Победить Hibernate в тестах. Сможем? Всем, привет! На связи Михаил Поливаха, технический лидер Open Source проекта Axelix (проект, посвященный помочь вам идентифицировать частые проблемы в Java server-side приложениях, в т.ч в рамках работы с Hibernate). Данная, последняя статья является продолжением небольшой серии статей ответов на вопросы, которые возникли у участников Spring АйО Академии в рамках программы Hibernate. Я рассмотрю оставшиеся последние вопросы, а именно: “Можно ли в тестах как-то проверить, что Hibernate под капотом делает что-то страшное?” Тут очень важно не давать вам “рыбу”, а научить вас рыбачить, т.е. дать вам некоторый фреймворк о том, что стоит держать в уме при работе с Hibernate.

    habr.com/ru/companies/spring_a

    #java #hibernate #axelix #orm #sql #jpa #test #unittesting #springdata #springboot

  2. [Перевод] Axelix выходит в общий доступ. Путь в тысячу миль начинается с первого шага

    От имени основной команды Axelix и всех, кто внёс вклад в сообщество, я хочу заявить: мы наконец это сделали. Axelix, наконец, выходит в GA (Generally Available — общедоступная версия)! Для тех, кто не знает - Axelix это продукт с открытым (Open Source) ядром, который позволяет выявлять распространённые проблемы, подводные камни и неэффективности в Java-приложениях. Ядро продукта лежит на GitHub - можете использовать, это бесплатно. В этом посте я хочу поделиться историей и мотивацией, стоящей за продуктом в целом. Надеюсь, вам будет интересно.

    habr.com/ru/companies/spring_a

    #java #springboot #springdata #springcloud #springsecurity #opensource

  3. Что вам нужно знать про семантику List и Set в Hibernate

    Привет, друзья! На связи Михаил Поливаха, технический лидер проекта Axelix . В рамках Spring АйО Академии я встречал большое количество похожих вопросов, посвященных правильному дизайну сущностей и другим похожим вопросам. Я обещался на все эти вопросы ответить в рамках статьи. На самом деле, одной статьи у меня не вышло, скорее всего, будет серия статей. Надеюсь, будет интересно :)

    habr.com/ru/companies/spring_a

    #hibernate #java #orm #sql #springdata

  4. Когда Hibernate плевать на ваш OneToOne Lazy Loading

    Привет, Друзья! На связи Михаил Поливаха, технический лидер проекта Axelix . В рамках программы Hibernate в Spring АйО Academy мы краем обсудили тему, касаемую того, что @OneToOne отличается от других отношений. В частности, Hibernate может спокойно грузить его Eagerly, даже если вы явно поставите FetchType.LAZY . У парней был закономерный вопрос - почему? И знаете, к моему удивлению, нормального материала в сети я не нашёл. В общем, решил выпустить статью, которая не просто отвечает на этот вопрос, а даёт прямо хороший, развернутый ответ на то, почему Hibernate это делает. Иными словами, я в статье постараюсь детально пояснить: Что на самом деле такое FetchType.LAZY ? Почему @OneToOne не всегда возможно сделать Lazy именно в Java ? Почему при этом @ManyToOne можно сделать Lazy всегда (предполагая не final класс сущности)? Разберём по шагам.

    habr.com/ru/companies/spring_a

    #hibernate #java #spring #orm #axelix #springdata

  5. [Перевод] JPA 4. Переосмысление Hibernate

    Данная статья является переводом анонса Гевина Кингa о релизе первого milestone JPA 4 спецификации и общего вектора развития JPA. Полноценная 4-ая версия JPA спецификации должна выйти чуть-чуть позже в этом году. Тем не менее, то, что сейчас в Milestone это основа, которая, возможно, с небольшими доработками, но уже пойдёт в релиз в этом году. От себя скажу, что данное обновление будет довольно крупное. Я оставил свои комментарии там, где посчитал уместным. P.S: У нас в рамках Spring АйО Академии как раз есть программа посвящённая Hibernate. В ней мы тоже затронем новую версию спецификации, в частности и работу со StatelessSession и EntityAgent на практике. Я думаю, что из всего апдейта, именно стандартизация работы без Persistence Context будет самым важным для прикладных разработчиков. Остальное тоже важно, но не так как работа с EntityAgent . Приятного чтения!

    habr.com/ru/companies/spring_a

    #hibernate #orm #jpa #sql #springdata #java

  6. Hibernate merge: начали за здравие, закончили за упокой

    Я уже давно хотел на этот счет написать статью. Она короткая,но имхо она нужна. Давайте с места в карьер: merge в Hibernate это не универсальный save , и чаще всего он Вам не нужен . На самом деле, если абстрагироваться, то это специализированная операция для случая, когда у вас есть detached-сущность , и вы хотите перенести ее состояние в текущий Persistence Context. Проблема в том, что на практике merge очень часто используют для апдейта любой сущности ( Spring Data JPA иногда так делает ) и как следствие получают лишние SQL-запросы. Ниже разберем на мой взгляд главное - почему именно так происходит , где merge действительно нужен, а где он превращается в антипаттерн (P.S да почти везде).

    habr.com/ru/companies/spring_a

    #java #hibernate #springdata #spring #orm #sql #jpa

  7. Check out what's new in the #Spring community 👉 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

  8. Check out what's new in the community 👉 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.

  9. Check out what's new in the #Spring community 👉 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

  10. Check out what's new in the community 👉 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.

  11. 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: javapro.io/2025/12/18/no-deadl

    @MongoDB #SQL #Databases #Java #Performance

  12. 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: javapro.io/2025/12/18/no-deadl

    @MongoDB #SQL #Databases #Java #Performance

  13. Today marks the 18th anniversary of the first commit of what should eventually become Spring Data JPA. What a ride! 🥳🍃🛢️ github.com/synyx/hades/commit/ #SpringData #JPA #Synyx

  14. Today marks the 18th anniversary of the first commit of what should eventually become Spring Data JPA. What a ride! 🥳🍃🛢️ github.com/synyx/hades/commit/ #SpringData #JPA #Synyx

  15. [Перевод] Как ускорить MongoDB в Java: profiling, explain(), индексация и антипаттерны

    Команда Spring АйО подготовила материал о том, почему «быстрый запрос в MongoDB» — это не магия, а дисциплина: индексы, форма запроса, проекции, explain(), профайлер и наблюдаемость в Java/Spring Boot. Разбираем, как отличать IXSCAN от COLLSCAN, где чаще всего прячутся антипаттерны (skip-пагинация, тяжёлые $regex/$nin, findAll), и как выстроить измеримый цикл оптимизаций от Atlas/Compass до Micrometer.

    habr.com/ru/companies/spring_a

    #MongoDB #производительность #индексы #explain #IXSCAN #COLLSCAN #SpringBoot #SpringData #профайлинг #мониторинг

  16. 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?

    Dive in: javapro.io/2025/12/18/no-deadl

    @MongoDB #SpringData #Java #JAVAPRO

  17. 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?

    Dive in: javapro.io/2025/12/18/no-deadl

    @MongoDB #SpringData #Java #JAVAPRO

  18. 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?

    Read more: javapro.io/2025/12/18/no-deadl

    @MongoDB #Java

  19. 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?

    Read more: javapro.io/2025/12/18/no-deadl

    @MongoDB #Java

  20. Почему Я выбираю Spring Data JDBC

    Реляционные базы данных по-прежнему остаются главным хранилищем наших данных. А значит, вопрос выбора инструмента отображения данных из БД на уровне приложения - всё так же актуален. Долгое время я выбирал: Spring Data JPA. Уверен, что большинства из вас — тоже. Но времена меняются, и в 2025 для своих новых проектов я использую — Spring Data JDBC. Почему? Если вам стало любопытно — добро пожаловать под кат.

    habr.com/ru/companies/haulmont

    #jpa #springdata #jdbc #hibernate #java #spring #orm #springboot

  21. [Перевод] ORM это Вьетнамcкая Война Компьютерных Наук

    Данная публикация является переводом статьи Jeff-a Atwood-а почти 20-ти летней давности. Jeff Atwood, один из фаундеров StackOverFlow, написал эту статью как некоторое резюме того, как человечество боролось с проблемой O/R Impedance Mismatch. Я частично принимаю участие в написании разных ORM решений, например, Spring Data JDBC / R2DBC , и скоро

    habr.com/ru/companies/spring_a

    #java #orm #springdata #hibernate #jdbc #jooq #database #rdbms

  22. 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: javapro.io/2025/06/19/java-and

    @Hibernate #SpringData #ORM #NoSQL

  23. 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: javapro.io/2025/06/19/java-and

    @Hibernate #SpringData #ORM #NoSQL

  24. 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: javapro.io/2025/05/21/a-look-b

    #SpringAI #SQL

  25. 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: javapro.io/2025/05/21/a-look-b

    #SpringAI #SQL

  26. 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, и что же нас ждёт дальше.

    habr.com/ru/companies/sberbank

    #spring #jpa #jakartaee #hibernate #data #springdata

  27. 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
    javapro.io/2025/06/19/java-and

    @Hibernate #SpringData #ORM

  28. 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
    javapro.io/2025/06/19/java-and

    @Hibernate #SpringData #ORM

  29. 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: javapro.io/2025/06/19/java-and

    @springcentral

  30. 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: javapro.io/2025/06/19/java-and

    @springcentral

  31. 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 #webDevelopment

    Who else will be there? #SpringData #springboot #java #community #hibernate

  32. 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 #webDevelopment

    Who else will be there? #SpringData #springboot #java #community #hibernate

  33. Dive into the latest releases from #Spring 👉 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

  34. Dive into the latest releases from 👉 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.

  35. 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).

    docs.aws.amazon.com/AmazonElas

  36. 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).

    docs.aws.amazon.com/AmazonElas

  37. New tutorial. Utilising Spring Data's `RepositoryDefinition`.

    rashidi.github.io/spring-boot-

    I wrote the code and Junie (of JetBrains) wrote the article. Amazing assistant!

    #tutorial #java #spring-data #SpringData

  38. New tutorial. Utilising Spring Data's `RepositoryDefinition`.

    rashidi.github.io/spring-boot-

    I wrote the code and Junie (of JetBrains) wrote the article. Amazing assistant!

    #tutorial #java #spring-data #SpringData

  39. 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.

  40. 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

  41. Dive into the latest releases from #Spring 👉 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

  42. Dive into the latest releases from 👉 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.

  43. 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! 🙇☺️🍃🛢️ github.com/synyx/hades/commit/

  44. Dive into the latest releases from ! bit.ly/3MmKYlr

    Spring Boot, Spring Data, Spring Cloud, Spring Security, Spring Authorization Server, Spring Session, Spring for Apache Kafka & Spring for Apache Pulsar.

  45. 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 medium.com/javarevisited/hiber

  46. 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

  47. 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.

    blog.touret.info/2024/03/25/jp

    #TechAtWorldline #BackToBasics

  48. 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: stackoverflow.com/questions/45 #springdata #ddd

  49. 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.io/survey

    #spring #springboot #springdata #springsecurity #springcloud

  50. 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: github.com/xdev-software/sprin

    / #springdata