I believe you need to indicate that the values are persistent. So try inserting the following tags:
[EMAIL PROTECTED]
* column-name="RealEstateEntryValue"

Thus:
/**
* @ejb.interface-method
[EMAIL PROTECTED]
* column-name="RealEstateEntryValue"
* @ejb.value-object
*/
public abstract RealEstateDataAllValue getRealEstateEntryValue();
/**
* @ejb.interface-method
*/
public abstract void setRealEstateEntryValue( RealEstateDataAllValue par );

You do not need the second @ejb.value-object tag in front of the setter.

BTW I would not use the suffix "Value" for a member variable, because it could confuse other programmers, who might think you are storing a value object. :)

*********** REPLY SEPARATOR ***********

On 28.01.2004 at 18:17 [EMAIL PROTECTED] wrote:
Hi,

I am trying to efficiently use a ValueObject. As I am a 30% newbie, I am pretty sure that I am doing something wrong.

On the object-level, I declare:

...
* @ejb.value-object
* name = "RealEstateDataAll"
* match = "*"
...

That procucet the class for me. Works.

In my CMP bean, I include methods (tried several different declarations):

/**
* @ejb.interface-method
* @ejb.value-object
*/
public abstract RealEstateDataAllValue getRealEstateEntryValue();

/**
* @ejb.interface-method
* @ejb.value-object
*/
public abstract void setRealEstateEntryValue( RealEstateDataAllValue par );

I would expect to get the valueObject out of the getter. But it does not do that.

What else do I have to do, to work with the ValueObject??



Thanks for your help.

Klaus

--
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to