Querydsl
spring-data-relational
Querydsl | spring-data-relational | |
---|---|---|
6 | 11 | |
4,575 | 728 | |
0.5% | -0.4% | |
4.1 | 9.2 | |
3 days ago | 2 days 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.
Querydsl
-
PostgreSQL Is Enough
There is a bit of tooling needed but is already around. For Java for example I had very good experience with a combination of flyway [1] for migrations, testcontainers [2] for making integration tests as easy as unit tests and querydsl [3] for a query and mapping layer.
[1] https://github.com/flyway/flyway
[2] https://java.testcontainers.org/modules/databases/postgres/
[3] https://github.com/querydsl/querydsl
-
Apache Empire-Db: Full SQL Freedom for Java
http://querydsl.com/ also seems similar
-
Useful & Unknown Java Libraries - Piotr's TechBlog
As for JPA: I cannot miss the QueryDSL library for building typesafe queries. Another interesting alternative is Jinq, that provides a java stream api to query entities.
-
You might not need an ORM
> all I really want is a nice API for building queries (that actually supports all underlying database features) and automatic mapping of the results to whatever objects/structs and primitives the language supports.
For Java based solutions, check out https://www.jooq.org/ or http://querydsl.com/
-
How do access sql through java in the real world?
QueryDsl -- http://querydsl.com
- How to build SQL query strings?
spring-data-relational
-
You might not need an ORM
What do you think of Spring Data JDBC (https://spring.io/projects/spring-data-jdbc)?
-
Architecture Pitfalls: Don’t use your ORM entities for everything — embrace the SQL!
What do you think of Spring Data JDBC?
-
Where is the Lock annotation in Spring-data-jdbc?
Link to GitHub: https://github.com/spring-projects/spring-data-relational/blob/main/spring-data-relational/src/main/java/org/springframework/data/relational/repository/Lock.java
-
What are some more options or good practices for dynamic SQL query building?
I would ignore the hipster jOOQ and similar and start with Spring Data JDBC https://spring.io/projects/spring-data-jdbc
-
Which ORM framework are you using with Java, and why?
This makes Spring Data JDBC a simple, limited, opinionated ORM.
-
Solution to NullPointerException in java?
Though JPA is fine, and yes hibernate can be used under the hood. When it comes to spring it is mostly what level of abstraction you want. Or you could go with JDBC. And you have a spring data JDBC for having a similar abstraction as to the JPA one.
- Is there a reason to not use Spring Data JPA and Jackson in big projects?
-
Jodd – The Unbearable Lightness of Java
This is not correct. You're thinking Spring Data JPA [1]. Spring Data JDBC [2] does _not_ use any Hibernate nonsense.
[1] https://spring.io/projects/spring-data-jdbc
-
I wrote an MVP in Java and it was actually pleasant
The data moved from the awesome-but-confusing DynamoDB... into PostgreSQL✨, using Spring Data JDBC.
-
20 years of Hibernate
I didn't have much experience with Hibernate and Spring (was using JavaEE prior), it could very possibly be the case, that the team simply misused Hibernate. We might have used n+1 queries, eager loading (although I mildly remember we fixed this), oh and we had the old id generation via sequence in Hibernate, that was really pain to optimize properly. Oracle 11 does not have identity generation. I remembered this only becuase I created an issue at the time. Still not implemented, but can't blame them, who the hell uses sequences as ID generation nowadays.
What are some alternatives?
jOOQ - jOOQ is the best way to write SQL in Java
MyBatis - MyBatis SQL mapper framework for Java
JDBI - The Jdbi library provides convenient, idiomatic access to relational databases in Java and other JVM technologies such as Kotlin, Clojure or Scala.
high-performance-java-persistence - The High-Performance Java Persistence book and video course code examples
Jinq - LINQ-style queries for Java 8
Apache Hive - Apache Hive
jodd-json - JSON Java serializer and parser.
Spring Data JPA - Simplifies the development of creating a JPA-based data access layer.
nanohttpd - Tiny, easily embeddable HTTP server in Java.
Presto - The official home of the Presto distributed SQL query engine for big data
Ebean ORM - Ebean ORM