-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to implement mapping tables with additional fields
PostPosted: Thu Jul 29, 2004 2:33 pm 
Newbie

Joined: Mon Jun 14, 2004 5:16 pm
Posts: 16
Location: New York
I'm trying to write a program that deals with movies, theaters and what
movies play at what theaters.

Here are the 3 tables I have:


tbl_movie
Code:
movie_id
name
...


tbl_venue
Code:
venue_id
name
...


tbl_movie_venue_map
Code:
movie_id
venue_id
start_date
end_date
time_info
price_info
....



My initial approach is to have 3 classes:
Movie
Venue
MovieVenueMap

MovieVenueMap will obviously hold Movie and Venue entities and the
additional field values (start_date, end_date, etc)...

Is this the correct approach? Or is there a better, more efficient way of representing the tbl_movie_venue_map?

Thanks in advance,
Cagan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 9:17 pm 
Regular
Regular

Joined: Thu Nov 20, 2003 10:04 pm
Posts: 64
Location: Melbourne, Australia
I'm no hibernate expert but it sounds okay to me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.