Yep. You can name your Java classes (ObjEntities) anything you want within
Java naming rules... That's what the mapping is for.
Andrus
> names are nothing ... content is all
>
> cayenne-use..bjectstyle.org schrieb am 19.01.05 07:43:41:
>>
>> The answer here seems obvious but I'm so new to Cayenne (3-4 hours :-)
>> that I thought I'd write and double-check I'm not going to hurt
>> myself.
>>
>> I've got a bottom-up situation where I've inherited a database. The
>> previous developer did a decent job with naming, I've got tables with
>> names like "products", "units", etc. Note that the table names are
>> plural, as they should be since the tables hold lots of each entity.
>>
>> When I do a "Reengineer Database Schema" in the Cayenne Modeler it
>> pulls in all my tables and creates entities. But the entities are
>> left with plural names. This doesn't make sense (to me anyway) since
>> that entity will be an object that represents a single entity from
>> that table. Right?
>>
>> So am I getting into hot-water if I just go through and un-pluralize
>> the entity names?
>>
>> Tools like Middlegen seem to "do the right thing" with regard to
>> de-pluralization, so maybe this is an item on the wish list?
>>
>> I'm happy to do it by hand, I just want to make sure I'm not breaking
>> something.
>>
>> Thanks!
>>
>> - Gary
>>
>> --
>> Greywether, Inc.
>>
>
>
> __________________________________________________________
> Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
> weltweit telefonieren! http://freephone.web.de/?mc=021201
This archive was generated by hypermail 2.0.0 : Wed Jan 19 2005 - 09:00:48 EST