Apache JDO Project - jdo 2.1 - 18.14 property

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2007 > jdo 2.1 - 18.14 property





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author jdo 2.1 - 18.14 property
Erik Bengtson

2007-08-17, 7:12 am

Hi,

§18.14
"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.

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."


Craig L Russell

2007-08-17, 1:12 pm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com