Hi,
I would like my value object to include a field for a custom readonly
property I have in my class. For example:
/**
* @ejb.bean
* cmp-version="2.x"
* name="Example"
* jndi-name="ejb/Example"
* local-jndi-name="ejb/ExampleLocal"
* primkey-field="id"
* schema="Example"
* type="CMP"
* view-type="both"
*
* @ejb.value-object
* name="Example"
* match="*"
*/
public abstract class Example implements EntityBean {
//ejbCreate, ejbPostCreate, setEntityContext, unsetEntityContext
here
/**
* @ejb.interface-method
* @ejb.persistence column-name="id"
* @ejb.transaction type="Supports"
*/
public abstract String getId();
/**
* @ejb.persistence column-name="id"
* @ejb.transaction type="Supports"
*/
public abstract void setId(String id);
/**
* @ejb.interface-method
* @ejb.persistence column-name="name"
* @ejb.transaction type="Supports"
*/
public abstract String getName();
/**
* @ejb.interface-method
* @ejb.persistence column-name="name"
* @ejb.transaction type="Supports"
*/
public abstract void setName(String name);
/**
* @ejb.interface-method
* @ejb.transaction type="Supports"
*/
public String getNameExample() {
return getName() + "example";
}
}
How can I get the value object to contain a field called "nameExample" with
the value of whatever the getNameExample() method returns? The motivation is
simple: the getNameExample() method will perform some complex and recursive
processing to determine the value. I would like this to be determined on the
server using local refs rather than by the client using remote refs . . .
Thanks,
Kent
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user