https://kotlinlang.org logo
g

glenkpeterson

04/16/2018, 7:25 PM
Copy code
open class UnmodPdfStyle(
        open val bodyFontSize: Double? = null,
...
} // end UnmodPdfStyle

@Entity
class PdfStyle : UnmodPdfStyle() {
    @Column
    override var bodyFontSize: Double? = null,
...
    companion object {
        val DEFAULT_STYLE:UnmodPdfStyle = UnmodPdfStyle(
                bodyFontSize = 7.6,
...
    } // end companion
} // end PdfStyle
Is that the right way to do this?