I
tried this, but it does not work.
Obviously, the CMP interprets the column-name as a SQL column-name and
includes this in its statement. I get the result, that RealEstateEntryValue is
not a valid column-name in the table.
Sorry,
I nee another advice.
But
thanks for your thought anyhow.
klaus
-----Ursprüngliche Nachricht-----I believe you need to indicate that the values are persistent. So try inserting the following tags:
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von [EMAIL PROTECTED]
Gesendet: Donnerstag, 29. Januar 2004 09:25
An: [EMAIL PROTECTED]
Betreff: Re: [Xdoclet-user] Help me using ValueObjects
[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