Skip to content

The column 'Currency_ID' has already been added in this SQL builder (Parameter 'columnName') #2732

Answered by hazzik
NikitaEgorov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NikitaEgorov this is a documented possible breaking change in 5.2.0

##### Possible Breaking Changes #####
* Entities having many non-readonly properties (including many-to-one) mapped to
the same column will no more silently ignore the trouble till an insert or update
is attempted. They will now cause the session factory built to fail. When
mapping many properties to the same column, all of them excepted at most one
should be mapped with `insert="false" update="false"`.

The solution you have found is exactly what is recommended.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hazzik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2726 on April 15, 2021 23:17.