You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Paul Copeland <te...@jotobjects.com> on 2009/04/04 19:46:13 UTC
Docs confusion/bug openjpa.jdbc.MappingDefaults
There seems to a minor confusion in the 1.2.1 OpenJPA manual regarding
openjpa.jdbc.MappingDefaults
Section 7.4 Reference Guide - I discovered by trial and error that the
"jpa" alias is the default and the "default" alias is NOT the default.
Using the "jpa" alias generates the same forward mapping sql that is
generated without any MappingDefaults property. The manual should
clarify that the "jpa" alias is the default. I think the "jpa" alias
SHOULD be the default so the behavior is correct by the doc is confusing.
This config generates the same forward mapping sql as is generated
without specifying any MappingDefaults property (other than the expected
change to IndexDiscriminator).
<property name="openjpa.jdbc.MappingDefaults"
value="jpa(IndexDiscriminator=false)" />
This config generates massively different forward mapping sql compared
to not specifying any MappingDefaults property. Many column and index
names are different .
<property name="openjpa.jdbc.MappingDefaults"
value="default(IndexDiscriminator=false)" />