You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Frank Schwarz <fs...@gmx.net> on 2009/09/20 20:36:08 UTC

Naming strategy of embeddable

Hi,

is there a way to overrride the convention of jpa column-naming for
embeddables?

For example:
@Entity class ClassA {
  private String name;
  private ClassB b;
}

@Embeddable class ClassB {
  private String name;
}

This would ideally result in a column named "b_name" therefore no clashing
of names ;-)

I'm aware of @AttributeOverrides, I am looking for a more general solution.

-- Frank


-- 
View this message in context: http://n2.nabble.com/Naming-strategy-of-embeddable-tp3681193p3681193.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.