Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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