Hi,
I have a problem with an AO created by my plugin.
I need to add a constraint to my AO so we cannot have a multiple lines with same values in these columns (ID_OBJECT, USER, TYPE).
Thank you.
Ayoub
I don't think it is possible to guarantee that uniqueness using AO annotations. At least it wasn't possible 5 years ago, and I haven't seen much improvement on the AO framework recently.
We had a similar use case, and we solved it by adding our own logic to test uniqueness. (It basically "try to select the record to test this key triplet exists, and only write it if it isn't" and dealing with concurrent writes.)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.