Menu

#41 Value Object Naming

open
ejbdoclet (28)
5
2002-03-02
2002-03-02
No

From Marcus:

> Customer Bean have
> * @ejb:value-object name="CustomerLight"
match="light"
> * @ejb:value-object name="CustomerNormal"
match="normal"
> instantiation="eager"
> * @ejb:value-object name="Customer" match="*"

Perhaps it would be better so specify something like

@ejb:value-object name="Light" match="light"
@ejb:value-object match="*"

the value object class name would be
<beanName><valueObjectName>Value. So we would have
CustomerLightValue and CustomerValue. The accessor
methods would be getLightValue() and getValue(),
respectively.

Discussion


Log in to post a comment.