Transaction isolation with Spring and Hibernate

Recently I had to investigate the question of stale data that may be passed over transactional borders in our application. The application is Spring based using JPA with Hibernate to access the database. The answer to the above question is not that interesting, but to give it I had to understand how this whole stuff is set up and configured. There are are quite some resources which address something like this, but when coming to Spring, in recent time the approach to implement this when from directly using Hibernate to using Hibernate through JPA, while there are quite some books and tutorials on this, none also include specific information how to set the isolation level and what happens when you use the optimistic locking approach.

„Transaction isolation with Spring and Hibernate“ weiterlesen

JavaFX: Fixed size label

Though JavaFX provides a component for Pagination this is based on a fixed number of pages. However consider the following use case:

You have some text of undefined length but definitely longer than can fit on a page. The text is dynamic so it is not feasible to split up the text onto several pages. Further more it may be possible that while displaying the font or the font style changes and thereby resulting in a different paging of the text.

As I have just such a use case in OpenPatrician, I did a quick test on how such a thing could be implemented.

„JavaFX: Fixed size label“ weiterlesen

JavaFX: Perspective Transformation

As stated in one of my previous articles, the PerspectiveTransformation is good for transforming the visual repensentation of a node/shape, but its original position still stays the same. This means that if I want an transformed area to react on events (like mouse clicks), I have to transform the coordinates and then define the position.

„JavaFX: Perspective Transformation“ weiterlesen

JavaFX: Deformation

Proceeding with my article series investigating the use of JavaFX for OpenPatrician, I have come to the deformation part. In this first part I want to investigate JavaFX potential to deform a rectangle into a quadrilateral. This is a non-affine transformation as the parallelism is not maintained. Usually this comes into place if you have a perspective view and have to map a rectangle.

„JavaFX: Deformation“ weiterlesen