You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The order column must be of integral type. The persistence provider maintains a contiguous (non-sparse) ordering of the values of the order column when updating the association or element collection. The order column value for the first element is 0.
That works in any compliant JPA provider and we were hit by this on few cases in the migrated projects.
So if it is planned to implement I will provide tests. If not - may I ask for some workaround for this issue?
The text was updated successfully, but these errors were encountered:
assertSql(sql.get(1)).contains("select t0.person_id, t0.country_code, t0.area, t0.phnum from ecbl_person_phone_numbers");
assertSql(sql.get(1)).contains("order by t0.foo")
Expected behavior
When embedded collection persists column specified in @OrderColumn should be populated in order to maintain collection ordering.
Actual behavior
The column specified in @OrderColumn is not populated at all.
Steps to reproduce
Sample mapping (in Kotlin, sorry):
Order item schema:
https://docs.oracle.com/javaee/6/api/javax/persistence/OrderColumn.html
Specifically:
That works in any compliant JPA provider and we were hit by this on few cases in the migrated projects.
So if it is planned to implement I will provide tests. If not - may I ask for some workaround for this issue?
The text was updated successfully, but these errors were encountered: