Dan, I've cc'd the struts-apps mailing list so hopefully others might be able to offer you some advice.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, February 02, 2004 3:53 PM > To: [EMAIL PROTECTED] > Subject: CP: appfuse with a twist > > > Matt, > > thanks for solving my last problem with the tomcat5jars. > > I love your site and Appfuse seems to be my choice for a new > app i'm architecting. However, it's likely I'll be starting > with an existing db model and generating the app that way. You could use middlegen http://boss.bekk.no/boss/middlegen/ to generate your XDoclet-marked-up POJOs from a database. Or you could use Hibernate - it has a tool (I forget the name now) that generates POJOs and .hbm.xml files from existing tables. I used this on a project about a year ago - works fairly well. If you put the hbm.xml files in the same directory as your POJOs, they'll get picked up and packaged by Ant. On another project I had this year, the schema and the SQL was already finished. We were simply porting it from Servlets/JavaBeans to Struts. We ended up using iBatis for the database layer - a very nice tool when you need to do SQL or the SQL is already written. I do plan to add support for iBatis sometime in the next few months. > > I would love to see an example that did just that. Would you > think about adding that to your awesome toots? > > I'll buy you a beer if so. > > Another question...the competitor to the hibernate backend is > using straight entity beans running on jboss. In fact, with > JAG i have already generated a basic CRUD j2ee app against my > schema. The advantage to entity beans is the ability to use > fine grained declarative security which I don't see with > hibernate. Is this correct? First of all, let me say, that I'm no EJB expert. I've been told that Entity Beans are slow and tough to test, so that's probably the main disadvantage. Yes, they do have declarative security and transactions - but the webapp should control the security in most cases (I would think). As for transactions, using Spring, you can add declarative transactions onto DAO methods, which is pretty slick IMO. Spring integration is mostly complete in CVS. HTH, Matt ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Struts-apps mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-apps
