Ubuntu on the laptop is definitely maturing. We're way past "at least it boots" and now that survival is ensured, it is time for luxury illnesses. One of those on the Asus N56VB is handling of screen brightness which, for my taste, comes in too steep steps. Especially the minimum brightness is still too bright … Continue reading Smaller brightness steps with the Asus N56VB and Ubuntu
Author: George Georgovassilis
Using gitub as a maven repository
If you shun the work that comes with uploading JARs to the central maven repository, here's a simple way to host your own maven repository on github [1].I'm copying the bare essentials from Christian Kaltepoth's article, you should read it for the details:Setting up----$ pwd/home/ck/workspace/jsf-maven-util$ cd ..$ git clone git@github.com:chkal/jsf-maven-util.git jsf-maven-util-pages$ cd jsf-maven-util-pages $ git symbolic-ref … Continue reading Using gitub as a maven repository
LocalContainerEntityManagerFactoryBean, Hibernate and superflous tables created in wrong database
TL;DR Hibernate's (3.2-3.4) JPA implementation will pick up hbm files on it's own when it should be looking only at persistence.xml, thus: - loading more entities that it should - loading the wrong entities - performing schema updates in the wrong database This one annoyed me plenty and took a great deal of debugging to … Continue reading LocalContainerEntityManagerFactoryBean, Hibernate and superflous tables created in wrong database
java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable
My current project is using JPA, heavily. JPA is a spec/standard/interface and I'm using the Hibernate implementation for it, but I import the entities from a different maven module. The entities module has a dependency on JPA, but not on Hibernate. So when I run my unit tests, I suddenly get a: java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable Openjpa? … Continue reading java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable
An easier to use Java REST client
I recently was duped (by myself) at a discussion with a colleague: in our continuous effort to disentangle release schedules of two tightly entangled applications, I exposed some core features as a JSON REST service and told him to "just use the Spring invoker" for JSON. It turns out, there is one for JaxRS, Burlap, … Continue reading An easier to use Java REST client