I have a Foo domain class with an embedded Bar field:
class Foo {
Bar bar
static embedded=['bar']
}
class Bar {
String ham
}
Which gives me a foo table with a bar_ham column.
The problem is that my Foo.bar and Bar.ham have much longer names in reality, so the column ends up having more than 30 characters in length, which Oracle doesn't like.
So how can I customize the name of the embedded column?
I've tried something like the following, but it didn't work:
class Foo {
Bar bar
static embedded=['bar']
static mapping={
bar column:'b'
}
}