Yes Adriano, that's what I said on my last reply. :-)

>> So, the only way, for now, to have type-safety is using that Class-thing. I don't vote for this though. A simple class with String constants does de job quite well. :-D

Cheers,
Bruno

Adriano dos Santos Fernandes wrote:
Bruno Borges escreveu:
Note that this is really type-safe, and these classes will never be instantiated.
I don't think this has any value in this context. Where will the roles x user will be? On the database, certainly...

So why declare dummy classes for them? If yon don't want to repeat strings, you could create static final constants somewhere...


Adriano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to