We have built an application using iBatis to act as the interface between code and database (no, really :o}). As you would expect with such a magnificent tool, it works well.
We have a different application that we are starting to ramp up. It uses the same data model for the most part with the same mappings from schema to model. In fact, it actually uses the same database instance - the datasets for each application are overlapping. I'd like to maintain a single copy of the code with a single set of SQLMaps where possible but be able to generate a jar file that will pull out some of the data with extra "where xyz = 'abc'" type constraints. What is the best way of doing this in your experience? To flesh out what I have described so poorly above, imagine that I have data from "populations" A, B and C. Application 1 needs to see data from A and B. Application 2 needs to see data from B and C. There is a "roles" table and a "populations_to_roles" table doing the many_to_many stuff and I'd like to be able to do all this from a single jar. FWIW, we're using maven as our build and management tool. Our objects are extracted via DAOs, which come from a singleton DAOFactory. My current thoughts are along the lines of injecting attributes into the DAOFactory that are then subsequently dumped into the DAOs that it generates. Thanks in advance for any help, ideas or discussion points that you can provide. Later, Andy -- View this message in context: http://old.nabble.com/How-would-you---the-experts---design-this--tp27304322p27304322.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org