persistence@glassfish.java.net

Re: (TopLink Essentials) bogus _at_JoinTable default value

From: Klaus Unger <UngerKlaus_at_gmx.de>
Date: Wed, 31 Oct 2007 02:15:36 +0100

Hi,

when trying to reproduce it independant of the project I tracked the problem
down to the orm.xml entry:
entity-mappings->persistence-unit-metadata->persistence-unit-defaults ->schema

The problem is not existent on tables with empty schemas.

I am not that confident with the semantics of table schemas, so maybe this is
my fault but I do think the @JoinTable name default is still wrong.

The reason seems to be that the PrimaryTableNames that already contain the
schema are concatenated for the new default name.

String defaultName = m_descriptor.getPrimaryTableName() + "_" +
getReferenceDescriptor().getPrimaryTableName();

in
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.CollectionAccessor.processJoinTable


- Klaus

P.S. I think i added the default schema earlier due to some weird eclipse dali
warning/error.