Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
KSAUX
Post subject: EJB QL and Transfer Objects  PostPosted: Jul 19, 2007 - 09:07 AM
Registered Member
Registered Member


Joined: Jan 10, 2005
Posts: 4

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: EJB QL and Transfer Objects  PostPosted: Aug 07, 2007 - 05:27 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits