Prototype

June 16, 2006

I have been in process of moving from Taiwan back to California recently. I'm finally settled in for now. My partner and I finally had acquired some hours to work on the Stripes on Rails idea. The prototype includes features:

  • Maven2 Webtype Plugin
  • Maven2 Stripes-on-Rails Configuration Archetype
  • Corresponding Templates
  • Other quirks
    • Override default templates
    • Inherit configuration to make new configuration
    • Add webtype to existing projects

Read the rest of this entry »


Spring and DAO w/ Annotation – It works!

May 13, 2006

I finally got some time to implement the idea that I mentioned in previous blog. After struggling for hours with Spring AOP, I realized I needed CGLIB to proxy abstract class!

Read the rest of this entry »


Spring and DAO w/ Annotation

April 3, 2006

Although EJB is moving forward to 3.0, and everyone seems to enjoy the POJO ORM stuff. I do miss some EJB 2.0 features. Particularly, being able to use the ejbSelect and finder methods! With xdoclet, one could easily annotate a method with its corresponding query.


/**
  * @ejb.select query="...."
  */
public abstract Collection ejbSelectWithKey(String key)
  throws FinderException;

Although it seems like named queries are to replace the use of this kind of methods. I still enjoyed the fact that the method is, afterall, a Java method. The Java language can provide name, parameter, and type checkings to this method, where named queries can't.

I could imaging something similar w/ Spring and DAO, and some simple AOP/proxy to achieve the following:

Read the rest of this entry »