On Sun, 7 Oct 2001, Konrad Hernblad wrote:

> just trying to figure out how to fix my ejb's such that when i call 
> xxxHome.create(), the primary key (an integer) is automatically incremented.
> 
> searching through jboss' forums, i found the below ejb pattern, but looks 
> like i have to read quite a bit to achieve something that would appear to 
> be simple.  :)

yes... remember the KISS philosophy.

> 
>http://www.theserverside.com/resources/review/ejbpatterns-primarykeystrategies-sept3.zip

IMHO, database sequences do what they do very well.... caching at the
application level is, um... interesting in this case.  I would suggest
straigh JDBC, perhaps performed by some abstract type...  anyway, couldn't
resist putting my 2 bob in (o:

cheers
dim



_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to