Rickard Öberg wrote:
> 
> Hi!
> 
> Alexander ten Bruggencate wrote:
> > > Id generation is very application specific, which is why you have to
> > > deal with it yourself. That said, this is a common need with common
> > > solutions. Look in the "jbosstest" module which has an id generator. You
> > > would also do well to read the id generation discussion at
> > > theserverside.com which has many good pointers.
> >
> > Ah, i'm beginning to see the picture, i'll do what you suggest.
> 
> Good!
> 
> To be even more precise, CMP is about *persisting data*, not *generating
> data* which is what you want. Remember that a primary key can be an
> email address, and how do you generate that generically...? (Rhetoric
> question)
> 
> /Rickard

yes, rub it in some more... :-)
it's just that the example i read from Richard Monson-Haefel's book
doesn't use a factory class to do that stuff which in turn gave me the
impression that cmp could be used for that.
Well, it's back to the drawing board for me!

-Alexander.

Ps. did i thank you for your help? if not thnx...


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to