Hi All, Using grails 6.0.0 Using grails-data-store...
# questions
j
Hi All, Using grails 6.0.0 Using grails-data-store-gorm-hibernate5:8.0.0 Java 11 I've got an issue doing this :
Copy code
class DomainWithTransientObject  {

    String prop
    TransientTest transientTest

    static transients = [ "transientTest" ] + AbstractEntity.transients

    static {
        println(transients)
    }
}
AbstractEntity.transients
is equals to
["anotherDefaultTransientVar"]
Gives the following results : --> The println statement shows
[[transientTest, transientVariable]]
, which is weird ? i was excepting
["transientTest", "transientVariable"]
Then the application failed to start with : '2023-10-17 093851.992 ERROR --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception; nested exception is org.hibernate.MappingException: Could not determine type for: test.heritage.TransientTest, at table: domain_with_transient_object, for columns: [org.hibernate.mapping.Column(transient_test)]