db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: DISCUSS remove @Field and @Property; add @Persistent
Date Wed, 18 Jul 2007 23:58:45 GMT
One thing we could do is to rename @Field to @Persistent, remove  
@Property, and allow @Persistent to be used for either fields or  
properties, equivalently. So there would be no difference in  
functionality between specifying fields=... and properties=...

So we would have

@interface Embedded {
Persistent[ ] fields();
Persistent[ ] properties();
...

@interface FetchGroup {
Persistent[ ] fields();
Persistent[ ] properties();
...

Usage:

     @Persistent (table="LINES", embeddedElement="true")
     @Join(column="OWNER_FK")
     @Element (
         embedded=@Embedded(
             fields={
                 @Persistent(name="point1.x", column="POINT1_X"),
                 @Persistent(name="point1.y", column="POINT2_Y"),
                 @Persistent(name="point2.x", column="POINT2_X"),
                 @Persistent(name="point2.y", column="POINT2_Y")
             }))
     Set<Line> lines;

     @Persistent (embeddedElement="true")
     @Join(column="OWNER_FK")
     @Element (
         embedded=@Embedded(
             properties={
                 @Persistent(name="point1.x", column="POINT1_X"),
                 @Persistent(name="point1.y", column="POINT2_Y"),
                 @Persistent(name="point2.x", column="POINT2_X"),
                 @Persistent(name="point2.y", column="POINT2_Y")
             }))
     abstract Set<Line> getLines();

Craig

On Jul 18, 2007, at 4:36 PM, Craig L Russell wrote:

> Looking some more, expanding the search radius:
>
> aspect, character, characteristic, facet, idiosyncrasy, indication,  
> mark, note, particularity, peculiarity, point, property, quality,  
> quirk, sign, speciality, symbol, trait, virtue
>
> appearance, aspect, attribute, badge, bent, caliber, cast, complex,  
> complexion, constitution, crasis, disposition, emotions,  
> estimation, ethos, frame, genius, grain, habit, humor, kind,  
> makeup, mettle, mood, morale, mystique, nature, personality,  
> quality, record, reputation, repute, sense, set, shape,  
> singularity, specialty, spirit, standing, streak, style, temper,  
> temperament, tone, trait, turn, type, vein
>
> affection, aspect, attribute, badge, bag, bearing, bent, caliber,  
> cast, character, complexion, component, differentia, disposition,  
> distinction, earmark, endowment, essence, essential, faculty,  
> flavor, frame, idiosyncrasy, inclination, individuality, mannerism,  
> mark, mood, nature, originality, particularity, peculiarity,  
> personality, point, property, quality, singularity, specialty,  
> streak, stripe, style, symptom, temperament, tendency, thing,  
> thumbprint, tinge, tone, trademark, trait
>
>
> On Jul 18, 2007, at 2:22 PM, Craig L Russell wrote:
>
>> Top 80 candidates to replace persistent:
>>
>> abiding, constant, dependable, diuturnal, enduring, fast, firm,  
>> fixed, impervious, lasting, long-continued, long-lasting,  
>> perdurable, perduring, permanent, persistent, reliable, resistant,  
>> sound, stable, stout, strong, substantial, tenacious, tough,  
>> abiding, ageless, always, amaranthine, boundless, ceaseless,  
>> constant, continual, continued, continuous, dateless, deathless,  
>> enduring, everlasting, forever, illimitable, immemorial, immortal,  
>> immutable, imperishable, incessant, indefinite, indestructible,  
>> infinite, interminable, lasting, never-ending, perdurable,  
>> perennial, permanent, perpetual, persistent, relentless, termless,  
>> timeless, unbroken, unceasing, undying, unending, unfading,  
>> uninterrupted, unremitting, without end
>>
>> @WithoutEnd(name="name")
>>
>> Craig
>>
>> On Jul 18, 2007, at 2:18 PM, Craig L Russell wrote:
>>
>>> Hi Andy,
>>>
>>> On Jul 18, 2007, at 1:46 PM, Andy Jefferson wrote:
>>>
>>>> Hi Craig,
>>>>
>>>>> It might be a good time (as we're almost done with this) to  
>>>>> replace
>>>>> @Field and @Property with @Persistent. That would make it  
>>>>> easier to
>>>>> describe that either a field or property is being described.
>>>>
>>>> While I agree totally with merging @Field and @Property, the use of
>>>> @Persistent is not appropriate.
>>>>
>>>> @PersistenceCapable
>>>> public class MyClass
>>>> {
>>>>     @Persistent(persistenceModifier=FieldPersistenceModifier.NONE)
>>>
>>> This is another anomaly: FieldPersistenceModifier should become  
>>> PersistenceModifier.
>>>
>>>>     String someFieldThatIsNotPersistent
>>>> }
>>>>
>>>>
>>>> so I tag a field that is not persistent with @Persistent ?
>>>
>>> Doesn't bother me as much as duplicating Field/Property all over.
>>>
>>> How about creating a new tag like @NotPersistent. To go along  
>>> with @Transactional and @Persistent.
>>>>
>>>> Any other idea for name? that suggests field/method/property ?
>>>
>>> Since you agree with the direction, I'll try to plumb the depths  
>>> of my vocabulary...
>>>
>>> Craig
>>>>
>>>>
>>>>
>>>> -- 
>>>> Andy  (Java Persistent Objects - http://www.jpox.org)
>>>
>>> Craig Russell
>>> Architect, Sun Java Enterprise System http://java.sun.com/ 
>>> products/jdo
>>> 408 276-5638 mailto:Craig.Russell@sun.com
>>> P.S. A good JDO? O, Gasp!
>>>
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message