hypersistence-utils
Spring Data JPA
Our great sponsors
hypersistence-utils | Spring Data JPA | |
---|---|---|
13 | 21 | |
2,258 | 2,896 | |
- | 1.5% | |
8.4 | 9.1 | |
12 days ago | about 16 hours ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hypersistence-utils
- The best way to use Spring Data query methods
-
Spring Boot — Power of Value Objects
Unfortunately, you cannot smoothly wrap the sequence-based IDs with value objects. There are solutions, but they are rather cumbersome. I left the proposal to the Hibernate types project of adding support to this feature. You’ve already seen the benefits of user-defined types. So, you can rate up my issue to make it more popular.
- The Spring Data JPA findById Anti-Pattern
-
Favorite hidden gem library?
The Hibernate Types project.
-
Persisting JSON with Spring Data
Spring Data / Hibernate does not support JSON fields out-of-the-box, but there is a library that provides custom types for the most common database systems: hibernate-types. This is a fantastic open source library, please support it!
-
Hibernate 6 has arrived
I will blog about it in the following months. So far, I managed to add a new Hibernate Types module for Hibernate 6 and released the 2.15 version.
-
Hibernate 6 rc1 released!
For current work, hibernate-types works great to support json/jsonb.
- The best way to map JSON with JPA and Hibernate
-
Hibernate Community • Performance comparison with JDBC - Does anyone have a modern version of this comparison?
Complex DB structures are not a problem. You can map any database type you want: JSON, HStore, Ranges, Inet, as I did in this hypernate-types project.
-
How to register a custom Hibernate ARRAY Type that handles both real[] and text[] array column types
I am using the Hibernate Types library for custom Hibernate types.
Spring Data JPA
-
How to Store Spring Boot Application Metrics in InfluxDB
Please note: The H2 database was chosen for simplicity. You can replace it with any other database technology and use the Spring Boot JPA to connect. The demo application will still work.
-
How to write a native query in spring boot jpa(postgres) which has "where in" check on composite columns?
What you are trying to do is not supported in JPA/JPQL or Spring Data (see here) Not even all databases support that syntax as far as I'm aware. You either need to concat the columns or add functionality to do this yourself, perhaps a Hibernate UserType will work.
-
What does @Transactional keep you from needing to call .save()?
There was also a discussion in the Spring Data JPA project repo surrounding the documentation as well: https://github.com/spring-projects/spring-data-jpa/issues/2055
- Multiple Datasources in an application
-
The best way to use Spring Data query methods
There is a small typo on the second issue, I have tried opening a PR myself to fix it https://github.com/spring-projects/spring-data-jpa/pull/2869. I hope i haven't messed up something lol.
-
Build a Simple CRUD App with Spring Boot and Vue.js
data-jpa: Spring Data JPA, makes it easy to create JPA-based repositories
-
Spring Boot GraphQL API example
This repository is an example application for the Spring Boot framework that employs the Netflix DGS framework to expose a GraphQL API and that interacts with a PostgreSQL DBMS via Spring Data JPA.
-
Spring Boot – Black Box Testing
I'm using Spring Data JPA as a persistence framework. Therefore, those classes are Hibernate entities.
-
QueryDSL and/or CriteriaAPI with multi-Joins on properties to Sort, Filter and Paging not working
By two different former developers, one from QueryDSL and the other RSQL JPA Spec (Criteria API), both mention that it is a Java issue mentioned here (since 2015...): https://github.com/spring-projects/spring-data-jpa/issues/1115
-
How do access sql through java in the real world?
If you go with hibernate note that there are a few different ways to use it. It can be used standalone and it can be used as a JPA implementation. If you use Spring and use hibernate as a JPA implementation then a popular Spring data layer abstraction is Spring Data which has JPA support with its Spring Data JPA library (https://spring.io/projects/spring-data-jpa)
What are some alternatives?
HikariCP - 光 HikariCP・A solid, high-performance, JDBC connection pool at last.
MyBatis - MyBatis SQL mapper framework for Java
public
JDBI - The Jdbi library provides convenient, idiomatic access to relational databases in Java and other JVM technologies such as Kotlin, Clojure or Scala.
FlexyPool - FlexyPool adds metrics and failover strategies to a given Connection Pool, allowing it to resize on demand.
jOOQ - jOOQ is the best way to write SQL in Java
maven-properties-gen - Maven Properties Generator for Java
spring-data-r2dbc - Provide support to increase developer productivity in Java when using Reactive Relational Database Connectivity. Uses familiar Spring concepts such as a DatabaseClient for core API usage and lightweight repository style data access.
maven-fetcher - Simple Java library for downloading Maven artifacts
Hibernate - Hibernate's core Object/Relational Mapping functionality
querydsl-entityql - QueryDSL EntityQL - Native Query builder for JPA
Apache Cayenne - Mirror of Apache Cayenne