custom ID generation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

custom ID generation

Krzysztof Podejma
Hello,
I want to generate ID's from type of my entity.
i.e. for tasks it should be T-1, T-2, T-3 .... for events EV-1, EV-2, EV-3
.... EV-2213 ...
it is similar to ID's of issues on jira. I don't want to use mod-rewrite.
Could you tell me how to achieve this?

Krzysztof Podejma
Reply | Threaded
Open this post in threaded view
|

Re: custom ID generation

Jacques Le Roux
Administrator
AFAIK this feature does not exists OOTB. But It should not be too hard to build using GenericDelegator.getNextSeqId().

HTH

Jacques

----- Message d'origine -----
De : "Krzysztof Podejma" <[hidden email]>
> Hello,
> I want to generate ID's from type of my entity.
> i.e. for tasks it should be T-1, T-2, T-3 .... for events EV-1, EV-2, EV-3
> .... EV-2213 ...
> it is similar to ID's of issues on jira. I don't want to use mod-rewrite.
> Could you tell me how to achieve this?
>
> Krzysztof Podejma
>