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
- Re: [Xdoclet-user] xdoclet xxxUtil.generateGUID() vs.... tek1
- Re: [Xdoclet-user] xdoclet xxxUtil.generateGUID(... Dmitri Colebatch
- Re: [Xdoclet-user] xdoclet xxxUtil.generateG... tek1
- Re: [Xdoclet-user] xdoclet xxxUtil.gener... tek1
- Re: [Xdoclet-user] xdoclet xxxUtil.gener... Dmitri Colebatch
- [Xdoclet-user] caching homes in util Lukas Severin
- Re: [Xdoclet-user] caching home... Konstantin Priblouda
- RE: [Xdoclet-user] caching ... Aslak Hellesoy
- Re: [Xdoclet-user] cach... Lukas Severin
- Re: [Xdoclet-user] cach... Konstantin Priblouda
- RE: [Xdoclet-user] cach... Konstantin Priblouda
