NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

use jsf and jpa to show data from multiple tables (join)

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
WhiteTea27



Joined: 23 Dec 2009
Posts: 5

PostPosted: Thu Feb 11, 2010 9:58 pm    Post subject: use jsf and jpa to show data from multiple tables (join) Reply with quote

I am attempting to learn about the java persistence API and java server faces and just completed the "Generating a JavaServer Faces 2.0 CRUD Application from a Database" tutorial and would like to know how to display information from multiple tables on the "View.xhtml" pages.

Should this be done by adding multiple @SecondaryTable annotations and altering the named queries in the entity classes?

Should i use the entity classes generated by netbeans and just alter the "prepareView()" method in one or more of the controllers?

How would I translate any of this to the View.xhtml pages?

Any help would be greatly appreciated.

Thank you
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo