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

View File

@@ -40,6 +40,8 @@ compileTestKotlin {
allOpen { allOpen {
annotation('javax.persistence.Entity') annotation('javax.persistence.Entity')
annotation('javax.persistence.Embeddable')
annotation('javax.persistence.MappedSuperclass')
} }
repositories { repositories {

View File

@@ -111,6 +111,8 @@
</compilerPlugins> </compilerPlugins>
<pluginOptions> <pluginOptions>
<option>all-open:annotation=javax.persistence.Entity</option> <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> </pluginOptions>
</configuration> </configuration>
<dependencies> <dependencies>