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?
|