mardi 29 décembre 2009

Flex Enum design pattern and BlazeDS

Still on Enums... Since there is no native support for true Enums in Flex yet, I have used a typesafe design pattern, like this can be done in Java. No problem there, until I wanted to plug them with BlazeDS.

And indeed, BlazeDS does not support natively the type-safe design pattern. It seems possible to tweak the serialiazer / deserializer to handle this, but it is cumbersome - and I am not that familiar with Flex yet. So in the end, I am "simply" removing the enums from my Flex code, since the benefits of the type-safe are not that huge (I'm the only developer for now).

lundi 28 décembre 2009

Hibernate 3 and Java 5 Enums

This looks like already a well-known issue, but Hibernate and Java 5 Enums do not get along well. To be able to map an Enum with Hibernate, you need to use a tweak that is well explained here (I used the last version of the GenericUserTypeEnum, with the JavaDoc of the one above, and it worked well - at least for my first basic test).

First test post

First post on the Agricola Online blog. I will try and use this space to take notes on the various issues I encounter during the development of the Agricola Online game (