NetBeans Forums

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

selected data from multiple tables

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



Joined: 20 Jun 2009
Posts: 12

PostPosted: Tue Jan 19, 2010 3:31 pm    Post subject: selected data from multiple tables Reply with quote

Hi guys,

I am doing a project in netbeans using Visual JSF(project woodstock). I have tried doing a table in netbeans which displays all or selected data from a table in the database. How do I do come up with a table which shows data extracted from various tables in a database? An example would be the following SQL statement:

Code:

select bookingdate, bookingstarttime, bookingendtime, username
from booking, user, user_has_booking
where user_has_booking.iduser = user.iduser
and user_has_booking.idbooking = booking.idbooking;


How do I get the same result that the above query would give, but in a JSF environment where we are not dealing with SQL directly. I am using netbeans version 6.5.1, the glassfish server and Toplink essentials for persistance. I hope someone can advise. Thanks.

regards
JavaisLife
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