Enable the all-open compiler plugin for @Embeddable and @MappedSuperclass
This commit is contained in:
committed by
Sébastien Deleuze
parent
3d4b305b04
commit
55a8485a7f
@@ -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>
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user