You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Kevin Sutter <kw...@gmail.com> on 2007/03/15 22:00:56 UTC
XTable and XSecondaryTable annotations
Hi,
I have come across the @XTable and @XSecondaryTable(s) annotations in the
org.apache.openjpa.persistence.jdbc package, but I don't see them documented
in our manual anywhere. I see where we have documented the XJoinColumn(s)
annotations, but I haven't made the connection between these "X"
annotations. Any help from the old Kodo folks?
Thanks,
Kevin
Re: XTable and XSecondaryTable annotations
Posted by Marc Prud'hommeaux <mp...@apache.org>.
> I just assumed there was real code behind it... :-)
Ahh ... the naïveté of youth :)
On Mar 15, 2007, at 6:20 PM, Kevin Sutter wrote:
> :-) Well, that would explain why it's not documented... I
> actually did a
> search through out the code tree looking for it, but I didn't look
> at the
> code block for the case statement. Stupid me. I just assumed
> there was
> real code behind it... :-)
>
> Have a good evening,
> Kevin
>
> On 3/15/07, Marc Prud'hommeaux <mp...@apache.org> wrote:
>>
>> Kevin-
>>
>> @XSecondaryTable has some attributes that @SecondaryTable doesn't
>> have:
>>
>> Index[] indexes() default {};
>> ForeignKey[] foreignKeys() default {};
>>
>> However, it doesn't look like we actually support using it yet, as
>> per the following comment in AnnotationPersistenceMappingParser.java:
>>
>> case X_TABLE:
>> case X_SECONDARY_TABLE:
>> case X_SECONDARY_TABLES:
>> // no break; not supported yet
>>
>>
>>
>> On Mar 15, 2007, at 2:00 PM, Kevin Sutter wrote:
>>
>> > Hi,
>> > I have come across the @XTable and @XSecondaryTable(s) annotations
>> > in the
>> > org.apache.openjpa.persistence.jdbc package, but I don't see them
>> > documented
>> > in our manual anywhere. I see where we have documented the
>> > XJoinColumn(s)
>> > annotations, but I haven't made the connection between these "X"
>> > annotations. Any help from the old Kodo folks?
>> >
>> > Thanks,
>> > Kevin
>>
>>
Re: XTable and XSecondaryTable annotations
Posted by Kevin Sutter <kw...@gmail.com>.
:-) Well, that would explain why it's not documented... I actually did a
search through out the code tree looking for it, but I didn't look at the
code block for the case statement. Stupid me. I just assumed there was
real code behind it... :-)
Have a good evening,
Kevin
On 3/15/07, Marc Prud'hommeaux <mp...@apache.org> wrote:
>
> Kevin-
>
> @XSecondaryTable has some attributes that @SecondaryTable doesn't have:
>
> Index[] indexes() default {};
> ForeignKey[] foreignKeys() default {};
>
> However, it doesn't look like we actually support using it yet, as
> per the following comment in AnnotationPersistenceMappingParser.java:
>
> case X_TABLE:
> case X_SECONDARY_TABLE:
> case X_SECONDARY_TABLES:
> // no break; not supported yet
>
>
>
> On Mar 15, 2007, at 2:00 PM, Kevin Sutter wrote:
>
> > Hi,
> > I have come across the @XTable and @XSecondaryTable(s) annotations
> > in the
> > org.apache.openjpa.persistence.jdbc package, but I don't see them
> > documented
> > in our manual anywhere. I see where we have documented the
> > XJoinColumn(s)
> > annotations, but I haven't made the connection between these "X"
> > annotations. Any help from the old Kodo folks?
> >
> > Thanks,
> > Kevin
>
>
Re: XTable and XSecondaryTable annotations
Posted by Marc Prud'hommeaux <mp...@apache.org>.
Kevin-
@XSecondaryTable has some attributes that @SecondaryTable doesn't have:
Index[] indexes() default {};
ForeignKey[] foreignKeys() default {};
However, it doesn't look like we actually support using it yet, as
per the following comment in AnnotationPersistenceMappingParser.java:
case X_TABLE:
case X_SECONDARY_TABLE:
case X_SECONDARY_TABLES:
// no break; not supported yet
On Mar 15, 2007, at 2:00 PM, Kevin Sutter wrote:
> Hi,
> I have come across the @XTable and @XSecondaryTable(s) annotations
> in the
> org.apache.openjpa.persistence.jdbc package, but I don't see them
> documented
> in our manual anywhere. I see where we have documented the
> XJoinColumn(s)
> annotations, but I haven't made the connection between these "X"
> annotations. Any help from the old Kodo folks?
>
> Thanks,
> Kevin