Open
Description
We can use annotation to insert value in function:
data class Doc(
@Id id: Long,
english: String,
@Fun("translate('french', english)") french: String
)
in annotation Fun("translate('french', ?)") we can select character "?" and get value from any primitive type of "french" field
then repository.save(doc)
generate:
insert into doc(id,english,french) values(123, 'good day', translate('french', english))
this will greatly simplify the logic and source code.