Enable the all-open compiler plugin for @Embeddable and @MappedSuperclass

This commit is contained in:
johnspade
2019-05-06 12:33:47 +03:00
committed by Sébastien Deleuze
parent 3d4b305b04
commit 55a8485a7f
3 changed files with 8 additions and 0 deletions

View File

@@ -545,6 +545,8 @@ apply plugin: 'kotlin-allopen'
allOpen {
annotation("javax.persistence.Entity")
annotation('javax.persistence.Embeddable')
annotation('javax.persistence.MappedSuperclass')
}
----
@@ -563,6 +565,8 @@ Or with Maven:
</compilerPlugins>
<pluginOptions>
<option>all-open:annotation=javax.persistence.Entity</option>
<option>all-open:annotation=javax.persistence.Embeddable</option>
<option>all-open:annotation=javax.persistence.MappedSuperclass</option>
</pluginOptions>
</configuration>
</plugin>