facebook

XDoclet: Collection of value objects?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #202204 Reply

    Marcus Beyer
    Member

    Is there an easy way in XDoclet to get a collection of value objects? Or do I have to iterate over what find-Methods give me?

    thanx!
    Marcus

    #202257

    Scott Anderson
    Participant

    Marcus,

    Given the detailed nature of this question, you might have better luck on the XDoclets forum on SourceForge. However, just because I have no idea doesn’t mean that our users don’t…

    #202261

    Riyad Kalla
    Member

    No you are right, we really have no idea 😀

    #202297

    Marcus Beyer
    Member

    @support-rkalla wrote:

    No you are right, we really have no idea 😀

    Sorry. What I do now is:

    private Collection getPersonValues()
    throws FinderException, NamingException
    {
    PersonLocalHome home = PersonUtil.getLocalHome();
    Collection persons = home.findAllPersons();
    Collection personValues = new LinkedList();
    for (Iterator iter = persons.iterator(); iter.hasNext();)
    {
    PersonLocal person = (PersonLocal) iter.next();
    personValues.add(person.getPersonValue());
    }
    return personValues;
    }

    As you can image, this is highly repetitive …

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XDoclet: Collection of value objects?

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