Interesting. I’ve thought ActionQueue has guaranteed that already. Maybe it only happens for one-to-one unidirection case?
same result if I change @OneToOne to @ManyToOne.
I think Hibernate won’t sort actions unless explicitly requested for performance hit. But I still think enforcing action sorting universally is reasonable, provided we can improve ActionQueue’s sorting performance. Not sure this ticket exposes a bug. Seems a good feature request, though.
Thanks for assigning the ticket to me. Yeah, improving ActionQueue has always been in my wish list (I’ve some good ideas on that as well). I don’t think it is possible to do that in v5 and I think it would be great contribution to v6 though.