-->
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: Mapping question
PostPosted: Mon Apr 25, 2005 11:13 am 
Beginner
Beginner

Joined: Tue Dec 21, 2004 11:53 am
Posts: 42
Hibernate version:2.1.6

Hello there! Our system has an object that one of its properties is not mapped to a table, instead that property comes from a 1-1 table relation (We are not allowed to change schema)
So I have a

Product table
ProductType table
and Product_ProductType table

as odd as it seems, product does not has a type on it, instead, for each product on the product table we have a relation o the link table (????)

Now, what I first tried is to use native sql to join those tables (I really wouldn like to map that abomination table). But I get a QueryException since the property is not mapped to a column.

How could I do this without mapping? Is it possible?


Regards


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.