https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
j

Julius Almeida

09/28/2021, 11:13 PM
Hi, I am seeing an issue with `AttributeOverrides`:
Copy code
@AttributeOverrides(value = {
    @AttributeOverride(name = "timestamp", column = @Column(name = "tstmp")),
    @AttributeOverride(name = "id", column = @Column(name = "userid"))
})
I am getting
Copy code
an annotation cannot be used as the annotations argument
nvm this was the solution:
Copy code
@AttributeOverrides(
    value = [
        AttributeOverride(name = "timestamp", column = Column(name = "tstmp")),
        AttributeOverride(name = "id", column = Column(name = "userid"))
    ]
)
238 Views