java - Hibernate @AttributeOverride has no effect -


i have folloing entity structure.

@entity public class {  @embedded  private b b; ... }  @embeddable public b{ @attributeoverrides({ @attributeoverride(name = "product", column = @column(name = "gdb_product") )}) @embedded private c c; ... }  @embeddable public c{ private string product; ... } 

but @attributeoverride hasn't effect because in db hasn't changed.

used jar : hierbenate 4.3.10-final, hsqldb 2.3.1

the column name change "product" "gdb_product".

if don't use

@attributeoverrides({ @attributeoverride(name = "product", column = @column(name = "gdb_product") )})

then column "product"


Comments