-->
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 to a particular field on another table
PostPosted: Sat Sep 03, 2005 4:49 am 
CREATE TABLE Issue(
id INTEGER PRIMARY KEY,
project_id INT NOT NULL,
issue_version INT NOT NULL,
);

CREATE TABLE Version (id INT PRIMARY KEY,
project_id INT, description VARCHAR(255), list_position INT);

What I want is to have a property in the Issue class which would be mapped to the description class.

Is it possible?

I'm currently just using a whole Version object for the Issue and I need to do:
issue.Version.Description...
This isn't much of a problem, but I still want to just do:
issue.Version and get the description.
I can do it by mapping to the field and returning the description from the property of course, but is there a different way?


Top
  
 
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.