Entity ResultSet Mapping in EJB3

Discussion in 'Java' started by puneet.bansal@wipro.com, Jun 6, 2007.

  1. Guest

    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
     
    , Jun 6, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith
    Replies:
    2
    Views:
    764
    Keith
    Nov 23, 2006
  2. Samuel van Laere

    Entity Name or Entity Number?

    Samuel van Laere, Feb 24, 2007, in forum: HTML
    Replies:
    4
    Views:
    1,685
    Jukka K. Korpela
    Feb 24, 2007
  3. markla
    Replies:
    1
    Views:
    563
    Steven Cheng
    Oct 6, 2008
  4. Amit Jain
    Replies:
    3
    Views:
    1,771
  5. Norm
    Replies:
    3
    Views:
    2,778
Loading...

Share This Page