On 4/04/12 4:49 PM, yunus wrote:
How can i prefix primary key with any alphabet like Admin121?

This is going to be quite a lot of work to do since any automated mechanism in 
Cayenne or in the db will work on integer values only.

If you are trying to avoid namespace collisions with some other system, you 
might be better off with a compound primary key and managing that by hand.

However any time you have a primary key with meaning is probably a mistake in 
database design. You are best trying to avoid this at all costs unless you are 
constrained by a legacy system in some way.

Ari



--
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Reply via email to