I am not crazy ?!
| * @ejb.value-object
| * name="Customer"
| * match="*"
| *
| * @ejb.value-object
| * name="CustomerLight"
| * match="light"
| */
| public abstract class CustomerEJB implements EntityBean {
|
| ...
|
| /**
| * @ejb.interface-method
| */
| public abstract CustomerValue getCustomerValue();
|
| /**
| * @ejb.interface-method
| */
| public abstract CustomerLightValue getCustomerLightValue();
|
| /**
| * @ejb.interface-method
| */
| public abstract void setCustomerValue(CustomerValue value);
This code snippet from xdoclet example doesn't imply any CMP(ejb.persistence ?) or
CMR(ejb.relation ?) fields. And this example reflects exactly what I want : get the
value object of the entity bean itself.
anonymous wrote : When I look at the code snippet given as example in SourceForge for
the Value Object tag, I can see that each getter and setter pairs are defined as CMP
or CMR fields.
Yes, for the persistent fields but not for the three last methods given before.
anonymous wrote : The error says that the getLanguageValue method do not correspond to
a CMP or a CMR field, which is the case in your code.
I know the signification of the exception but regarding the xdoclet example I have
just to define this abstract methods.
anonymous wrote : I never use the value object pattern, and of course the Xdoclet tag.
If you don't use value object, how do you get the values of your entity beans in your
views(JSP, etc...) ?
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835576#3835576
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835576
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user