jdo 2.1 - 18.14 property
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > jdo 2.1 - 18.14 property




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    jdo 2.1 - 18.14 property  
Erik Bengtson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 12:12 PM

Hi,

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

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

e.g.

//user given interface
interface Animal
{
@Persistent(fieldname="kind2")
int getKind();
}

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

or
---

//user given abstract class
abstract Jedi
{
int jedilevel;
@Persistent(fieldname="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."







[ Post a follow-up to this message ]



    Re: jdo 2.1 - 18.14 property  
Craig L Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:12 PM






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register