The Artima Developer Community
Sponsored Link

Java Answers Forum
Showing Data from 2 tables in JSF

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
pratap tripathy

Posts: 1
Nickname: pktripathy
Registered: Jan, 2008

Showing Data from 2 tables in JSF Posted: Jan 31, 2008 6:52 AM
Reply to this message Reply
Advertisement
I am developing a project in JSF and JPA

I have one table called employees with column
Name,Job_code,Dept_code
For employee table I have a entity

I have another table called ListOfValues with column
Prefix,Lov_code and Lov_desc
Prefix can be JOB(for job) and DEP(for department)

I want to display these columns
Name
Job desc(=lov_desc, comes from ListOfValues for prefix-JOB and lov_code=job_code)
dept_desc(=lov_desc, comes from ListOfValues for prefix-DEPand lov_code=dept_code)

I have got a session bean which does query(em.createquery(....)) and shows data using JSF datatable. It shows Name,Job_code,Dept_code fine. now I want to get job_desc and dept_desc in same table

Can anyone please tell me how to do it. Any help will be highly appreciated. Thanks...

Topic: Showing Data from 2 tables in JSF Previous Topic   Next Topic Topic: can you help me find a recursive solution?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use