Just figured out how to do multiple named queries in a single source file with annotations:
@NamedQueries ({
@NamedQuery(name=”…”, queryString=”…”),
@NamedQuery(name=”…”, queryString=”…”)
})
This is possibly the most awkward thing I’ve found so far with annotations.
nick Uncategorized
I’ve been taking a look at Tapestry over the last week, with plans to use it in a new project. It hasn’t been the easiest thing to learn, or the most fun. I have a copy of Tapestry In Action, which has been mildly helpful, but I would’ve been completely lost without the mailing list, which has been very useful. (And patient, with my multiple-messages-per-day habit.)
The most aggravating thing about learning Tapestry is the multiple files for each page in an application. For a single HTML page, you might have a Java file, a .page specification (which is an XML file) and a message resources properties file. It’s all a bit much to switch between multiple files when you just want a form to work. (Some of this should go away with annotations, but I had a lot of problems getting the 4.0 beta to work and went back to 3.0.3.)
Things should get easier with more time on the framework. I’m used to just picking up new frameworks overnight and that’s not the case with Tapestry.
nick Uncategorized
After wrapping up a project and taking some much-needed vacation time, I’m finally getting around to learning all of the stuff that I didn’t have time for earlier. The first thing I’m working on learning is Hibernate Annotations. Overall, they’re not bad.
The problem I’m having with them is they’re not XDoclet, and I’m very used to XDoclet tags. Granted, this isn’t a technical problem but a personal one. Related to the “not XDoclet” problem is that the annotations are based on an EJB spec, not on Hibernate, so I’ve hit some snags in translating tags from XDoclet to Annotations. It would be helpful to have the Hibernate Annotations reference docs show what annotations generate which Hibernate mapping XML, or display the comparative XDoclet tags.
The Annotations seem fairly complete. One stumbling block for me has been the lack of a @Formula annotation, which I plan to address if I can ever get the code from CVS to compile.
Another issue, related to Annotations, is the immaturity of the Hibernate-Tools package, specifically the Ant task to generate the database schema. The theory is you can use Annotations in your source files, then use the Ant task to create the DDL. However, I ran into some classloader issues with the Ant tasks that caused quite a bit of wasted time. I was also unable to use the ‘package’ attribute in the hibernate.cfg.xml. The Ant task couldn’t find the packages, which is probably related to the classloader problem.
I’m not sure if I prefer XDoclet or Annotations at this point. All I’ll say for now is Annotations are ugly as sin.
nick Uncategorized
Congrats to Don on finally getting a Powerbook.
nick Uncategorized
MSNBC is carrying an article about the most unwired cities. Seattle and SF lead, while some unexpecteds, like Toledo, Ohio are also in the top 10.
I was fairly impressed by the wireless coverage while I was on vacation. Depending on where you are, the cost for an hour of connection can be as high as $10, however.
nick Uncategorized
This is kind of an interesting idea - a Log4J appender for RSS.
nick Uncategorized
I decided to reject the project I was supposed to start in Connecticut after my vacation wrapped up. After getting one story from the company and a completely different one from the client, I decided that it wouldn’t be in my best interest to take on the project. I don’t see too many bait-and-switches any more, but this instance really annoyed me.
I’ve probably burned the bridge with the company that found the client, but I’m fine with that. I’m not willing to jeopardize my own company’s future for another.
nick Uncategorized