ErikFK wrote:
kingwell wrote:
when use jdbc, i can handle this by specifying the table name with the values column(tablename.values). but in Hibernate i cannot do this.
You can directly use SQL within Hibernate (SQLQuery or even, if nothing else helps, get the DB connection and work with JDBC), so you should be able to solve your problem.
Shouldn't this hint be helpful, provide your concrete example/code.
Erik
i don't think so. if doing in this way, OR mapping loses its meanning.
for example, i have one table named NUMBER, with two columns inside( id, and values)
when i want to insert a new record, the sql command will be insert into number(id, NUMBER.values) values('1','100')
but in hibernate how can you handle this, when i save one number instance, the generated sql is insert into number(id, values) values('1','100')
thank u very much for help