Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Entity ResultSet Mapping in EJB3

Reply
Thread Tools

Entity ResultSet Mapping in EJB3

 
 
puneet.bansal@wipro.com
Guest
Posts: n/a
 
      06-06-2007
Environment - JBoss 4.0.5 with EJB 3.0 and Oracle 9.2.0.4

Hi,

I have an Oracle native query that I am passing to the entity manager.
The query is supposed to get a parent entity A and a collection of
entity B. The query of course gives back multiple rows because the
relationship from A to B is one-to-many. My question is, is there any
way that Java Persistence could construct the object A and put all B
entities in the collection of A automatically (without me having to
write the code to iterate over and put the entities manually)?

It is a complex query and I have to use Oracle specific query.

Thanks for the help.
Puneet

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entity Framework - Reassigning child entity's parent Norm ASP .Net 3 07-06-2009 07:28 PM
how does Ojb, JDO, EJB3-Entity Bean, JPA, OpenJPA are differ fromeach Amit Jain Java 3 11-13-2008 02:46 PM
How to relate a SQL based entity with an Object based entity in Entity Framework markla ASP .Net 1 10-06-2008 09:42 AM
Entity Name or Entity Number? Samuel van Laere HTML 4 02-24-2007 10:11 PM
Do updates to ejb3 entity objects only update new values? Keith Java 2 11-23-2006 01:16 AM



Advertisments