I am exploring the transfer of application persistence mapping from hibernate hbm files to grails domain objects. The schema does not comply with many Grails column naming conventions, including composition column names. I would like to do the following:
class Foo{
Bar bar
static embedded = ['bar']
static mapping = {
bar.baz column:'baz'
bar.quz column:'qux'
}
}
class Bar{
String baz, qux
}
jira for this problem. Unfortunately, it was opened for almost two years unchanged. Is there a workaround for this without changing the columns in db?
source
share