-->
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.  [ 1 post ] 
Author Message
 Post subject: Many-to-many simple String lookup question
PostPosted: Fri Mar 05, 2004 1:50 pm 
Newbie

Joined: Wed Dec 10, 2003 1:29 pm
Posts: 8
Location: Chicago, USA
Is there a "raw data" mapping that might work with following scenario. I have a company entity that serves various industries. So there would be a company table and a simple industry table that contains an ID
and the industry name - just two fields.Each company can serve many industries and different companies can serve the same industry.
So there is effectively a many-to-many relationship. Is it possible to have a many to many that just looks at the raw data in the industry table? As opposed to having an industry domain object - its just a simple lookup to get a collection of Strings for the industries served in the two column Industry table?I'm assuming this will be defined as a many-to-many mapping. Thanks for any assistance.

I am using MYSQL,Hibernate 2.1.


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

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.