Hibernate version: 2.1.7c
Hi,
I'd like to use enumerated types, as explained on p.209 of HIA. The example works for me, but expects to find the value that's converted to a Rating object in the Comments table.
Now I'd like an enumerated type stored in its own table, along with additional columns, like in
Code:
TABLE COMMENT (
ID INT PRIMARY KEY
Text VARCHAR,
Username VARCHAR,
Rating INT FOREIGN KEY REFERENCES RATING.ID
)
TABLE RATING (
ID INT PRIMARY KEY
Description VARCHAR,
LastUpdate DATE
)
How would I go about mapping this?
Thanks,
Dan