Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

JPQL: iterator on several entities

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a little question about JPQL, I am trying to find the best way to do it.

I want to iterate on a list made of 3 entities :


I have not looked precisely yet, but what does resultats contain exactly in that case ?

{((Catalogue1), (Product1), (Article1)), ((Catalogue2), (Product2), (Article2)), � } ???

I want to produce the following table :

Name of Catalogue � Name of Product � Name of Article
------------------------------------------------------
nameCat1 nameProd1 nameArt1
nameCat2 nameProd2 nameArt2
nameCat3 nameProd3 nameArt3

with
nameCatalogue : Catalogue.getName() �
nameProduct : Product.getName() �
nameArticle : Article.getName() �

Thanks
[ November 05, 2008: Message edited by: Celinio Fernandes ]
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

It will be a List of Object[]. First element will be Catalogue instance, second element - Product instance, third element - Article instance.
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic