Well, works for now. Thanks again. :)

Daniel


Chad Brandon wrote:
Hi Daniel,

Yep its a bug in the ejb templates of M1 that has been fixed in M2 CVS, you
can easily change it by changing "$class.attributesAsList(true)" to
"$class.getAttributesAsList(true)".  About M2, should be soon but I don't
have an exact date.

Chad

----- Original Message ----- 
From: "Daniel Stephan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 11, 2004 2:36 PM
Subject: [Andromda-user] I see velocity code in the generated output .java
files?! (using m1)


  
Hi, its me again =)

I have another question. It seems Bernard Sirius had the same problem in
June and I don't know if he found a solution, so Bernard if you read
this and have a solution, please tell.

I see this code in my (stateful) service bean, which has two attributes
"defaultNotice" and "defaultLocation" in the model. Both Strings:

   // ---------------- create methods with separate attributes
--------------------

   /**
    * @ejb.create-method
    * @ejb.transaction type="Required"
    */
    public void ejbCreate $class.attributesAsList(true)
           throws javax.ejb.CreateException
    {
        setDefaultNotice (defaultNotice);
        setDefaultLocation (defaultLocation);
    }

    public void ejbPostCreate $class.attributesAsList(true)
           throws javax.ejb.CreateException
    {
    }

Chad mentioned in one of his replies to Bernhards mail, that this is
velocity script code and I could find almost exactly that part of code
in the HibernateSessionBean.vsl template. So it must be true.

But true or not, I do not want that there =)

I am NOT using the code in CVS, I am still using the released M1 version
of AndroMDA. Might it be an issue which already is solved in M2? If so,
when will there be a release?

Thanks :-)

Daniel



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user
    



  

Reply via email to