Skip to main content

Posts

Showing posts with the label hibernate

Apache OpenJPA-Life Beyond Hibernate?

Apache OpenJPA is the Java persistence project of the Apache Software Foundation. After quite some time flying under the radar, there's a new release. Let's look into it. JPA, aka the Java Persistence API, manages persistence and object relational mapping in Java EE and Java SE environments. Libraries like OpenJPA, Hibernate or EclipseLink are those providing the implementations of the standard. By writing code that adheres to the API you are not constrained by the specific library's features, despite the fact that sometimes the additional non-standard functionalities they provide can be desirable. Therefore you are free at any time to swap those libraries behind the scenes for improved performance, reduction in bug count or edge cases. full article on i-programmer: https://www.i-programmer.info/news/80-java/15450-apache-openjpa-life-beyond-hibernate.html

Hibernate goes Reactive - What Does That Mean?

 Hibernate Reactive Version 1.00 fosters non-blocking I/O access to the database plus reactive extensions. Let's get under the covers and find our why this helps. First a definition of the problem. JPA/JDBC was always blocking, meaning that any operation that touches the database through JDBC operations will block on socket IO, and when that's happening the thread it is running on will be blocked. So that means that when I make a call to the database from my main thread, the thread will block until the driver returns the results of the query. Then what about wrapping that call in a CompletableFuture to make the call asynchronous and wait on the Future instead, calling my callback when the database operation completes? That way don't I need a non-blocking driver after all?Perhaps, but since the stack is not non-blocking all the way down, there are certain disadvantages. But why should the stack be non-blocking all the way down? full article on i-programmer: https://www.i-pro...

The Insider's Guide to the Java Web Developer Nanodegree - 4

  Another installment of our ongoing in-depth coverage of the new Udacity Nanodegree program that will enhance your career prospects as a Java web developer. At last we get to play in the big league with the Java Persistence API and Hibernate. Because there's always a confusion around JPA vs Hibernate, the first thing we learn in  Data Stores and Persistence  is that the Java Persistence API (JPA) is the specification and that Hibernate is an implementer of it; just like in OOP where a concrete class implements an interface. full article on i-programmer.info