Skip to content

datmt

  • Home
  • Tutorials
    • backend
      • java
        • spring
        • JPA
        • javaee
    • devops
    • frontend
    • Linux
    • NoSQL Databases
  • Privacy Policy
  • Cookie Policy (EU)
  • Contact

spring data

Using @AttributeOverride To Resolve Conflicts

April 8, 2024 by Đạt Trần

Overview When working with spring data jpa, you probably come across issues like this: You have an entity with an @Embedded attribute. The @Embeddable class has the one property that has the same name as one of your entities’. You got this error when running the program: What do you do? Why Do you have … Read more

Categories JPA Tags hibernate, spring data Leave a comment

How To Use @Transactional In Spring Properly

February 23, 2025October 20, 2022 by Đạt Trần

With Spring AOP, you can simply use the @Transactional annotation to handle transactions in your app.

Categories spring Tags spring, spring boot, spring data, transactional Leave a comment

Using Transaction With JDBC in Spring

October 19, 2022 by Đạt Trần

Overview In the first post of this series, I briefly discussed the problem with multiple database operations and the need for using transaction management. In the last post, I also showed you how to set up PostgreSQL database using docker-compose. In this post, I’m going to show you the problems and solutions with code. The … Read more

Categories spring Tags jdbc, spring data, spring transaction Leave a comment

How To Map String To Boolean in Spring Data JPA

September 29, 2022 by Đạt Trần
How To Map String To Boolean in Spring Data JPA

Overview There are times you work with legacy databases that store boolean values as strings. Let’s consider this example: Town A conducted a survey to see if their citizens like apples or not. The developer back then created a table like this: For the file like_apple, he planned to store LIKE and DONOT as values … Read more

Categories JPA Tags jpa, spring data, spring data jpa Leave a comment
  • Architecture
  • backend
  • Clean Code
  • Cloud Computing
  • Databases
  • devops
  • frontend
  • fundamental
  • General Tips
  • git
  • java
  • javaee
  • JPA
  • kubernetes
  • Linux
  • management
  • mobile development
  • network
  • NoSQL Databases
  • opensource
  • python
  • quarkus
  • Relational Databases
  • scala
  • Security
  • spring
  • SQL
  • System Design
  • WordPress Development

Copyright Ⓒ datmt

© 2025 datmt • Built with GeneratePress