openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Using orm.xml|table-generator-->Strange Column
Date Tue, 07 Dec 2010 23:11:29 GMT
Gilberto -

It looks like you may have some sort of an issue with your One-to-one
mapping for Customer -> Person.

This is just off the top of my head, but can you try changing:

<entity class="Customer">
        ....
            <one-to-one name="person" target-entity="Person" maps-id="true">
                <join-column name="person_id" referenced-column-name="id" />
            </one-to-one>
to
            <one-to-one name="person" target-entity="Person" maps-id="id" />

Thanks,
Rick

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message