Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Auto Generated id

Avatar

Level 4

How i can acheive autogenerated id  in CQ5?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
2 Replies

Avatar

Level 10

Firstly there is no concept of id in CQ5 like other RDBMS. However, you can write your own service to autogenerate the id and use that in node

or let us know if you are looking at something else with a usecase. that would help to suggest 

Avatar

Correct answer by
Employee Advisor

Just see Rule#7 of David's model - Rule #7: ID's are evil. 

http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.237:_ID.27s_are_evil