enable to switch relation property type, adjustment for Scala