AI Glossary for Java Developers
Thorben Janssen Blog
by Thorben Janssen
3w ago
The post AI Glossary for Java Developers appeared first on Thorben Janssen. Most Java developers encounter problems when learning how to integrate AI into their applications using SpringAI, Langchain4J, or some other library. AI introduces many new terms, acronyms, and techniques you must understand to build a good system. I ran into the same issue when I started learning about AI. In this article, I did my... The post AI Glossary for Java Developers appeared first on Thorben Janssen ..read more
Visit website
How to define a repository with Jakarta Data and Hibernate
Thorben Janssen Blog
by Thorben Janssen
1M ago
The post How to define a repository with Jakarta Data and Hibernate appeared first on Thorben Janssen. Repositories are a commonly used pattern for persistence layers. They abstract from the underlying data store or persistence framework and hide the technical details from your business code. Using Jakarta Data, you can easily define such a repository as an interface, and you’ll get an implementation of it based on Jakarta Persistence or Jakarta NoSQL.... The post How to define a repository with Jakarta Data and Hibernate appeared first on Thorben Janssen ..read more
Visit website
Getting Started with Jakarta Data and Hibernate
Thorben Janssen Blog
by Thorben Janssen
1M ago
The post Getting Started with Jakarta Data and Hibernate appeared first on Thorben Janssen. Jakarta Data standardizes stateless repositories based on Jakarta Persistence and Jakarta NoSQL so that you can concentrate on your business code instead of handling the technical details of simple queries. In this article, I will briefly introduce the new specification and give you an overview of its stateless repositories. In future articles, we will dive... The post Getting Started with Jakarta Data and Hibernate appeared first on Thorben Janssen ..read more
Visit website
Should your tests manage transactions?
Thorben Janssen Blog
by Thorben Janssen
1M ago
The post Should your tests manage transactions? appeared first on Thorben Janssen. During my Spring Data JPA workshops and talks, I often get asked if a test case should handle transactions, or not. And if it handles the transaction if it should commit it or roll it back. And as so often, the short answer is: it depends. The slightly longer answer is: it depends on the... The post Should your tests manage transactions? appeared first on Thorben Janssen ..read more
Visit website
Databases and AI with Neo4J as an example with Michael Simons
Thorben Janssen Blog
by Thorben Janssen
1M ago
The post Databases and AI with Neo4J as an example with Michael Simons appeared first on Thorben Janssen. When integrating AI into your application, you will most likely want to use a concept called RAG. This acronym stands for Retrieval Augmented Generation and is an absolute game changer. The idea is simple: By providing your own input data to your LLM, you can improve the quality of its response and let it include... The post Databases and AI with Neo4J as an example with Michael Simons appeared first on Thorben Janssen ..read more
Visit website
Implement your primary key as a Record using an IdClass
Thorben Janssen Blog
by Thorben Janssen
2M ago
The post Implement your primary key as a Record using an IdClass appeared first on Thorben Janssen. There are various reasons to implement your own primary key representation. Your primary key may consist of multiple attributes. Or you’re following domain-driven design principles and want to use a custom type to add semantic meaning to it. Implementing a record and mapping it as an IdClass seems evident in these situations. A record is efficient, easy to implement, immutable... The post Implement your primary key as a Record using an IdClass appeared first on Thorben J ..read more
Visit website
Persist LocalDateTime, ZonedDateTime & Co with Hibernate
Thorben Janssen Blog
by Thorben Janssen
2M ago
The post Persist LocalDateTime, ZonedDateTime & Co with Hibernate appeared first on Thorben Janssen. The Date and Time API, introduced in Java 8, finally replaced the old java.util.Date. It’s much easier to use and finally offers separate classes representing date, date with time, and only time information. That not only improves your business code but also makes it easier to use them as entity attributes. At least if you’re... The post Persist LocalDateTime, ZonedDateTime & Co with Hibernate appeared first on Thorben Janssen ..read more
Visit website
Book Review: DuckDB in Action
Thorben Janssen Blog
by Thorben Janssen
3M ago
The post Book Review: DuckDB in Action appeared first on Thorben Janssen. What if I told you that there’s a tool that makes it incredibly easy to process datasets from various sources, analyze them using SQL, and export the result in different formats? And that it doesn’t require all the hassle you know from typical relational databases or a custom implementation. Sounds too good to be true,... The post Book Review: DuckDB in Action appeared first on Thorben Janssen ..read more
Visit website
FetchType: Lazy/Eager loading for Hibernate & JPA
Thorben Janssen Blog
by Thorben Janssen
6M ago
The post FetchType: Lazy/Eager loading for Hibernate & JPA appeared first on Thorben Janssen. Choosing the right FetchType is one of the most important decisions when defining your entity mapping. It specifies when your JPA implementation, e.g., Hibernate, fetches associated entities from the database. You can choose between EAGER and LAZY loading. The first one fetches an association immediately, and the other only when you use it. I explain... The post FetchType: Lazy/Eager loading for Hibernate & JPA appeared first on Thorben Janssen ..read more
Visit website
How to generate DAOs and queries with Hibernate
Thorben Janssen Blog
by Thorben Janssen
6M ago
The post How to generate DAOs and queries with Hibernate appeared first on Thorben Janssen. Executing a query with Hibernate requires several lines of repetitive boilerplate code, and many developers have complained about that for years. You have to instantiate a Query object and set all bind parameter values before you can finally execute the query. Since version 6.3.1, Hibernate has solved this with an improved metamodel generator that provides... The post How to generate DAOs and queries with Hibernate appeared first on Thorben Janssen ..read more
Visit website

Follow Thorben Janssen Blog on FeedSpot

Continue with Google
Continue with Apple
OR