Hi I am using composite-id for this table, not sure what is wrong but I am getting saxparseexception while loading bean. Below is my mapping <hibernate-mapping > <class name="x.model.data.TimeTaken32" schema="x_DB" table="TIME_TAKEN_32"> <composite-id > <key-property column="timestamp" type="timestamp" name="timestamp"/> <key-property column="time_taken" type="long" name="timeTaken"/> <key-many-to-one column="scenario_operation" name="scenarioOperation" class="x.model.data.ScenarioOperations" /> <key-many-to-one column="scenario_record" name="scenarioRecord" class="x.model.data.ScenarioRecords"/> </composite-id> </class> </hibernate-mapping>
my table script is as below
CREATE TABLE time_taken_32 ( scenario_operation INTEGER NOT NULL, scenario_record INTEGER NOT NULL, timestamp TIMESTAMP WITH TIME ZONE NOT NULL, time_taken INTEGER NOT NULL, FOREIGN KEY (scenario_operation) REFERENCES scenario_operations (id), FOREIGN KEY (scenario_record) REFERENCES scenario_records (id) ); Thank you for all the help.
|