i recently read brett mclaughlin's "building java enterprise applications" and in chapter 5 (advanced entities), he talks about using a sequence (stateless session) bean for generating/managing entity id. in xdoclet, i see that each xxxUtil class contains a very convenient generateGUID() method, which returns a 32-bit string that can be used to generate an entity's id.

i'm trying to decide which approach to use, and wondering what people from the field have to say about the +/- of both approaches, including performance.

also, regarding the generateGUID(), it appears as though the logic is not specific to a particular entity, so is it necessary to include the statis generateGUID() method in each entity's xxxUtil class? can it be placed in a single, non-ejb class? it probably won't affect performance (much), but it would eliminate repeating the same code in numerous entities. just wondering the reason for each xxxUtil class having its own generateGUID() method?

thank you.


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to