hello, 

I am encountering a funny situation, I dont know if I am doing something 
wrong or if this is how the value object pattern works: 

When I call MyBeanLocal.getValueObject()  I get a value object with all 
the CMP fields populated except my UID field! Therefore I cannot do any 
further lookups with this object because I have no UID!

I noticed that in the generated code for MyBeanCMP, the method 
getValueObject creates a new value object and does not set that field. 

I understand that the UID is not something that we would want to be 
modified in the ValueObject, but, supposing we were to pass a graph of CMR 
value objects back to the client, of what use are these objects if we dont 
know their UID ? 

Surely I'm missing something ? I apologize if this question is utterly 
ignorant, can someone please shed some light ? if the Value object does 
not contain the UID (though the code does have accessors for this field) 
then how does the interaction take place between the client and server to 
acquire the UID in an alternate way, and what happens if you're dealing 
with a collection of VO's ? 

Thanks

Nat



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to