Hi guys,
I need to map the following senario and could do with some help.
I have a Content entity, that has a unique id to identify itself, however each Content entity has a shared id property. The perpose of this property is to group the content items together.
What i want to do though is have that shared id as an autoinrementing number (ie for an item that is created with no shared id a new id is created one increment higher than the maximum shared id value in the database) but is unique per group, not per row like the primary key.
Hopefull i've explained this well enough.
Could anybody offer any advice on how to go about this?
Many thanks
Matt
|