Hi,
I am getting a weird error when trying to retrieve from a table.
The table has only two columns. They both consist the composite key.
Like this
create table abc(
col1 char(10) not null,
col2 char(10) not null,
primary key (col1, col2)
)
col1 is referenced by another table1, so is col2 by table2.
when I try to use session.find("select a from abc a") to retrieve the data, it complains that
in expected: a[select a from abc a]
I also tried to use join clause but no help.
The "hibernate in action" only talks about the the general case when the primary key is only one column.
Does anyone have similiar problem?
thanks
andre
|