Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Friday, 9 March 2012

Vaadin - Pure Java Web Application Awesomeness


Lately I have had the pleasure of working with Vaadin, which is the sexiest Java UI language I have ever seen.

To cut to the chase, have a play around with this very snazzy interactive demo of Vaadin. (written in Vaadin!)

For those of you still here, Vaadin is a framework for building web applications using pure Java. No need to learn another language or attempt to deal with Swing, just code! Furthermore, the web application is built on the fly by your server. This means you can directly call all your other Java services and fetch data without having to worry about serialisation!

No more data transfer objects, no more worrying about translating types and no more code that isn't Java. (And on a personal note, no more Adobe Flash Builder... HORRAY!)

If you want to find out more, I recommend their outstanding book, which is online and free! Did I mention the whole framework is totally free as well? It comes in like a single tiny jar file as well... stop reading and download it now!!!

Saturday, 3 March 2012

Developer Diary - Hibernate Generated Primary Key Values

From 16th August 2011.

Ever since I started using Hibernate, I have noticed some weird behaviour with the primary keys that were being generated. They were way too high and being incremented strange multiples.

This bugged me personally, it wasn't causing any sort of bug in the code but I was determined to get to the root cause of the problem.

Turns out you have to tell Java Persistence not to multiple your sequence generator by 50! Why this default logic is in place, I don't know...

More details here ^_^ Spread the word!