Hibernate and XDoclet - hassle with one-to-one

Posted on September 6th, 2006 by arnljot.
Categories: appfuse, java.

I’m using appfuse 1.9.3, and it seems that the bundled XDoclet 1.3-SNAPSHOT has a bug in it’s one-to-one mapping generation, I think it’s an old X-Doclet bug?

Seems like I need to find a way around this, frustrating since these are the things that are supposed to be simple. Trying to surf XDoclet websites could suggest that the projects (XDoclet1 and 2) have been ‘hibernating’ for quite some time now…

0 comments.

myRiga and JMock

Posted on September 5th, 2006 by arnljot.
Categories: appfuse, java.

I’ve been studying up on JMock, the reason is that today I’ll be holding a presentation at Avenir on using mock objects.

I’ll post my short powerpoint later on this site. It’s mostly my [limited] experiences with JMock, and leads to good articles on JMock and testing using mock objects.

The case I’ll be using is “myRiga”, an application I’ve been asked to make for a company trip we’ll do later in October.

myRiga is an appfuse based application.

0 comments.

Tapestry 4 and forms

Posted on September 5th, 2006 by arnljot.
Categories: appfuse, java.

I rarely need to make “static” forms, like “edit userprofile” in Appfuse.

Most of the time I do not know what the instance of the form will look like, because it’s determined by user selections and what’s in the database.

This is a pain… But not impossible, so far I’ve cheated by passing an id to the state of my dynamically built form to the rewind cycle of my page so that I don’t get a “stale link exception”. But I feel like it’s cheating.

In the Tapestry 4 API it says I should inject an application state object instead of using a visit object, is it available in “pageBeginRender” and how is it done?

I need to find out, the way I’m doing it now is surely not “best practice”.

0 comments.