facebook

EJB QL and Transfer Objects

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272897 Reply

    KSAUX
    Member

    Hello,
    I’m using EJB 2.x and I stumple upon following problem.

    I have simple CMP entity with single CMR to another CMP. I need to get a list of values from this entity and transfer it to the client.

    I want to transfer only selected values encapsulated in tailored Transfer Object. Right now, if I use ejbFindXXXX method I receive EJB Entity that I do not want to expose to the client. To return list of Transfer Objects I would have to iterate through this list and convert every single value to my TO which is not very performance-wise.

    What I would like to do is execute tailored ejbSelect method, that only fetches data from DB and puts them into list of objects of my class.

    Is this possible?

    Cheers,
    Radoslaw Grzanka

    #273626 Reply

    Riyad Kalla
    Member

    Radoslaw,
    You may want to post to Sun’s J2EE forums as well to see if someone can help you out with your EJB2 question.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: EJB QL and Transfer Objects

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