facebook

CMR fields in Dataobject/xDoclet

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #224685 Reply

    cgogineni
    Member

    Hello,

    I am using ME xDoclet for generationg interfaces and data objects for Enterprise Java Beans. All the fields that I have defined as CMP are going to data object but not the CMR fields. Is there a way I can generate CMR fields also in Data object.

    Thanks,
    Chandra

    #224697 Reply

    Riyad Kalla
    Member

    Chandra,
    I have asked our EJB guy to have a look at this.

    #224716 Reply

    Greg
    Member

    Are you using the @ejb.data-object or the @ejb.value-object? The data-object is deprecated in favor of the value-object. If you read the value-object documentation, it appears it should support what you are trying to do.

    @ejb.value-object (0..*)
    
    Definition for ValueObjects that follow the TransferObject pattern from http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html. ValueObjects can 'link' to other objects (of a relation) in two ways: aggregation and composition. Aggregation means that the other object is loosely coupled, while in Composition, the other object is 'embedded'. Note that aggregation and composition are mutually exclusive. See also http://xdoclet.sourceforge.net/xdoclet/valueobjects.html for more info. 
    #225315 Reply

    cgogineni
    Member

    Greg,

    Thanks for the reply. I am using value object task now. One question on this task is, it is generating a boolean field for every field in value object. Is there anyway I can set value-object task for it to not generate those boolean attributes.

    Thanks,
    Chandra
    eg:
    private java.lang.Integer qcPhaseId;
    private boolean qcPhaseIdHasBeenSet = false;

    #225371 Reply

    Greg
    Member

    You could look for some attribute on the value-object subtask, or some other value-object xdoclet tags to see if there are any that talk about turning this off.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: CMR fields in Dataobject/xDoclet

You must be logged in to post in the forum log in