JPA success!

After battling some days with JPA at last it now works. There were some hours when I thought going back to plain Hibernate. Trying the JPA implementation from Glassfish (the Oracle sponsored Toplinks essentials) which didn't work and some problems with KODO (from BEA), I got the application working with Hibernate JPA. What bothered me was the JBoss common jar which is needed for Hibernate JPA. In the future I hope to get the other JPA implementations working to get some performance numbers.

The current players in the JPA field are KODO (which partly is open sourced as Apache OpenJPA), Apache Cayenne, Hibernate, Toplink and JPOX. KODO, Hibernate and Toplink look good, OpenJPA and JPOX have a lot of momentum. The days of the dominating Hibernate ORM may be over. We'll see which one will become the next Hibernate (or is it Hibernate3 ?).

JPA seems to be a nice solution, standardized object persistence in databases. JPA will bring to ORMs what JDBC brought to databases. Mix and plug. Choose the best for your job. Somehting the other backend API for Java, JCR, is still far away from. I hope people move up the abstraction stack from JPA to JCR and JCR will became as successfull as JPA in the long term. Go, migrate to JPA!

PS: Changing the application at the same time to JPA, Spring-JPA and H2 as a database was - as usual - a bad idea. But developers from time to time become overconfident and think of themselves as super heros. Next time I'll change only one technology a time again 🙂

cintoo Messages for Java 1.4?

I've been thinking about 1.4 support for some time now. With TestNG as an example, it should be possible to both support the new 1.5 features like autoboxing and varargs and supply a 1.4 jar, any ideas and suggestions?

The recent Lenovo vs. Apple discussion, I don’t get it

There is a Lenovo vs. Apple discussion raging on in the blogosphere. All posts claim that Lenovo is so much cheaper than Apple hardware. Well, either I'm too stupid to configure laptops at the lenovo and apple stores, or I value the difference much less then others or the claim that Lenovo is so much cheaper than Apple is plain wrong.

When I configure a T60p in the Lenovo store (80gb harddisk, 15" display, DVD burner, 512Mb, 2ghz Core Duo) I get 2196 USD (higher resolution, better GFX card, no video camera, no widescreen) compared to a MacBook pro which costs 1999 USD.

When I configure a V100 in the Lenovo store (bigger 80gb hardisk vs. 60gb, only 12" display compared to 13", only 1.63 ghz compared to 1.83, no video camera, no widescreen) I get 1099 USD compared to a MacBook which costs exactly 1099 USD too.