Domain class constraint ‘length’ deprecated in Grails 0.4.2

The domain class constraint ‘length’ has been deprecated in Grails 0.4.2, and needs to be replaced with the equivalent constraint ‘size’ instead.

If you have upgraded to 0.4.2 you may see this error on startup:

<code>Domain class [class ExampleDomain] includes the length constraint for the exampleProperty
 property.  This constraint is deprecated and will be removed in the future.  
Please update your code to use the size constraint instead.
</code>

@Property annotation removed

Generated code in Grails used to use an @Property annotation to indicate Grails properties. This was used somewhere around version 0.1 – 0.2, was still supported in 0.3.1 (although I think not used in newly generated code), but is now no longer in 0.4.2. You’ll see the error:

<code>
 @ line 8, column 6.ExampleController: 34: unable to resolve class Property unable
to find class for annotation
</code>

Just go through your old code if you have migrated from prior versions of Grails and replace the @Property annotation with def instead – the code will work with 0.4.2+.

Sony spills the news on what ‘Home’ is all about…

It has been speculated for a few weeks now that Sony was about to announce movie, tv and music downloads on the PS3, via an initiative called ‘Home’. Turns out ‘Home’ is more than just that – it is a fully immersive interactive virtual world where you can interact with any other online user, and all of your media content.

ign.com have a walkthrough of the new service incluing screen shots – it looks pretty awesome so far. Think ‘Second Life’ in HD coupled with Nintendo’s ‘Mii’ concept on steroids. Think XBox360’s ‘Achievment Points’ for achieving in-game goals – now take that an visualize the whole concept in a 3D interactive world where you walk through your virtual trophy room to view all your game rewards. Mix all these concept together, and this gives a picture of what ‘Home’ is all about.

A promo video of Home can be seen here.

It will be making a beta appearance early this year, but expect to see it in it’s completed full version in fall this year.