J-Emmanuel
10/16/2023, 10:55 PMclass 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)]