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)" />


Reply via email to