db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Bengtson <e...@jpox.org>
Subject jdo 2.1 - 18.14 property
Date Fri, 17 Aug 2007 10:04:55 GMT

"When contained in a class element:
- The field-name attribute is required; it associates a persistent field with
the named property."

AFAIR field-name attribute is used for generated classes. It should be optional
when contained in class or interface elements.


//user given interface
interface Animal
int getKind();

//jdo implementation generated class
class GeneratedAnimal
     int kind2;
     int getKind()
        return kind2;


//user given abstract class
abstract Jedi
int jedilevel;
int getLevel();

//jdo implementation generated class
class GeneratedJedi
     int jedilevel;
     int getLevel()
        return jedilevel;

The new wording could be:
"When contained in a class or interface element:
- The field-name attribute is optional; it associates a persistent property with
a named field."

View raw message