You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Borut Bolčina <bo...@gmail.com> on 2008/12/16 15:24:52 UTC
Generated relationship names
Hi,
is it possible to configure somehow generated relationship names. I would
like to have a relationship with name "profiles" or "roles" instead of
"profileArray" and "userRoleArray".
I know I can rename them after re-engineering, but it is a pain to do that 8
times on large models.
Cheers,
Borut
Re: Generated relationship names
Posted by Andrus Adamchik <an...@objectstyle.org>.
Great! thanks for the link. For the reference, on a static site this
resolves to the following URL:
http://cayenne.apache.org/doc/reverse-engineer-database.html
Andrus
On Dec 16, 2008, at 7:30 PM, Andrey Razumovsky wrote:
> You can read more about naming strategies here:
> http://cwiki.apache.org/confluence/display/CAYDOC/Reverse+Engineer+Database
>
> 2008/12/16 Borut Bolčina <bo...@gmail.com>
>
>> Oh lord!
>>
>> It does exactly what I want!
>>
>> -Borut
>>
>> 2008/12/16 Andrus Adamchik <an...@objectstyle.org>
>>
>>> The new reverse engineering dialog has a naming strategy dropdown
>>> with
>>> choices of "org.apache.cayenne.access.reveng.BasicNamingStrategy"
>>> and
>>> "org.apache.cayenne.modeler.util.SmartNamingStrategy". I've never
>>> tried
>> the
>>> "smart" one yet (so not sure how it names the relationships), but
>>> now we
>>> have an extension point for naming.
>>>
>>> Andrus
>>>
>>>
>>>
>>> On Dec 16, 2008, at 4:24 PM, Borut Bolčina wrote:
>>>
>>> Hi,
>>>>
>>>> is it possible to configure somehow generated relationship names. I
>> would
>>>> like to have a relationship with name "profiles" or "roles"
>>>> instead of
>>>> "profileArray" and "userRoleArray".
>>>>
>>>> I know I can rename them after re-engineering, but it is a pain
>>>> to do
>> that
>>>> 8
>>>> times on large models.
>>>>
>>>> Cheers,
>>>> Borut
>>>>
>>>
>>>
>>
Re: Generated relationship names
Posted by Andrey Razumovsky <ra...@gmail.com>.
You can read more about naming strategies here:
http://cwiki.apache.org/confluence/display/CAYDOC/Reverse+Engineer+Database
2008/12/16 Borut Bolčina <bo...@gmail.com>
> Oh lord!
>
> It does exactly what I want!
>
> -Borut
>
> 2008/12/16 Andrus Adamchik <an...@objectstyle.org>
>
> > The new reverse engineering dialog has a naming strategy dropdown with
> > choices of "org.apache.cayenne.access.reveng.BasicNamingStrategy" and
> > "org.apache.cayenne.modeler.util.SmartNamingStrategy". I've never tried
> the
> > "smart" one yet (so not sure how it names the relationships), but now we
> > have an extension point for naming.
> >
> > Andrus
> >
> >
> >
> > On Dec 16, 2008, at 4:24 PM, Borut Bolčina wrote:
> >
> > Hi,
> >>
> >> is it possible to configure somehow generated relationship names. I
> would
> >> like to have a relationship with name "profiles" or "roles" instead of
> >> "profileArray" and "userRoleArray".
> >>
> >> I know I can rename them after re-engineering, but it is a pain to do
> that
> >> 8
> >> times on large models.
> >>
> >> Cheers,
> >> Borut
> >>
> >
> >
>
Re: Generated relationship names
Posted by Borut Bolčina <bo...@gmail.com>.
Oh lord!
It does exactly what I want!
-Borut
2008/12/16 Andrus Adamchik <an...@objectstyle.org>
> The new reverse engineering dialog has a naming strategy dropdown with
> choices of "org.apache.cayenne.access.reveng.BasicNamingStrategy" and
> "org.apache.cayenne.modeler.util.SmartNamingStrategy". I've never tried the
> "smart" one yet (so not sure how it names the relationships), but now we
> have an extension point for naming.
>
> Andrus
>
>
>
> On Dec 16, 2008, at 4:24 PM, Borut Bolčina wrote:
>
> Hi,
>>
>> is it possible to configure somehow generated relationship names. I would
>> like to have a relationship with name "profiles" or "roles" instead of
>> "profileArray" and "userRoleArray".
>>
>> I know I can rename them after re-engineering, but it is a pain to do that
>> 8
>> times on large models.
>>
>> Cheers,
>> Borut
>>
>
>
Re: Generated relationship names
Posted by Andrus Adamchik <an...@objectstyle.org>.
The new reverse engineering dialog has a naming strategy dropdown with
choices of "org.apache.cayenne.access.reveng.BasicNamingStrategy" and
"org.apache.cayenne.modeler.util.SmartNamingStrategy". I've never
tried the "smart" one yet (so not sure how it names the
relationships), but now we have an extension point for naming.
Andrus
On Dec 16, 2008, at 4:24 PM, Borut Bolčina wrote:
> Hi,
>
> is it possible to configure somehow generated relationship names. I
> would
> like to have a relationship with name "profiles" or "roles" instead of
> "profileArray" and "userRoleArray".
>
> I know I can rename them after re-engineering, but it is a pain to
> do that 8
> times on large models.
>
> Cheers,
> Borut