MmarcoM
Jul 28th, 2009, 11:19 AM
Hello all,
i do apolgize posting here but i found no answer in hibernate forums and i thought someone here could have come across my problem
I am trying to map a table which has one column of type ROWID
I couldn ot find any hibernate type associated, so i defined it as a Varchar (from the database , it looks like a varchar at least)..
I am able to retrieve data usign find(), and i am also able to use the ROWID to find the row int eh corresponding table
However, when i try to delete my object hibernate fails..
First off, it does not delete the object (row in teh db i sstill there)
secondly, if i call a finder after the delete method (to verify the row has been deleted) i got an ORA-01722 invalid number
i THINK hibernate thinks that the ROWID is a long, while in the db it appears like a varchar
well, was wondering if anyone came across to similar problems....
otherwise, sorry for spamming..
regards
marco
i do apolgize posting here but i found no answer in hibernate forums and i thought someone here could have come across my problem
I am trying to map a table which has one column of type ROWID
I couldn ot find any hibernate type associated, so i defined it as a Varchar (from the database , it looks like a varchar at least)..
I am able to retrieve data usign find(), and i am also able to use the ROWID to find the row int eh corresponding table
However, when i try to delete my object hibernate fails..
First off, it does not delete the object (row in teh db i sstill there)
secondly, if i call a finder after the delete method (to verify the row has been deleted) i got an ORA-01722 invalid number
i THINK hibernate thinks that the ROWID is a long, while in the db it appears like a varchar
well, was wondering if anyone came across to similar problems....
otherwise, sorry for spamming..
regards
marco