Im searching for the best way to mantain combo box values within a Mysql Database accessed by Hibernate objects.
Currently we have the following table:
CREATE TABLE COMBO_VALUES(
KEY VARCHAR(5) NOT NULL,
COMBO_TYPE VARCHAR(20) NOT NULL,
VALUE VARCHAR(100) NOT NULL
PRIMARY KEY(KEY,COMBO_TYPE)
);
INSERT INTO COMBO_VALUES VALUES('A1', 'COMBO1', 'VALUE1');
INSERT INTO COMBO_VALUES VALUES('A2', 'COMBO1', 'VALUE2');
INSERT INTO COMBO_VALUES VALUES('A3', 'COMBO1', 'VALUE3');
The problem with this table is that we are unable to map this with Hibernate.
Anyone has been in this situation before?