From: RefuX Z. <re...@ya...> - 2002-02-28 16:03:48
|
For the Lunch-o-Matic example I've been working on, I created an ID Generator Service for generating Primary Key IDs. I'm thinking I should probably add it into the main Arch4J. Here the current interface, how does it look? /** Service for generating IDs to be used as primary keys for the DB. * @author Jroome */ public interface IDGeneratorService { /** Get the next id * @return the next id * @param key Key to be used in generating the next id. For example the key could be a table name. Thus person table and location table could have the same ids as their primary keys. */ public IdentifierDomain getID( String key ); } Ok, I know its a simple interface, but this is an opensource project so I figure best to get the dev mailing list a little bit more active :) __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com |