I created some entities created in model generator then did some modification in code (text mode)
When I return in designer mode, sometimes the kotlin code is modified in a bad way.
For example,
I had an interface that I add on all my entities (may be it’s related to the problem)
interface IDisplayName {
val displayName: String
}
then I implements in the entity
@get:InstanceName
@get:DependsOnProperties("code")
override val displayName: String
get() = code ?: id.toString()
That’s ok, but if I open the designer sometimes the code is modified to
@get:JmixProperty
@DependsOnProperties("code")
override val displayName: String
get() = code ?: id.toString()
private set