Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

to_number in hibernate?

  Asked By: Carolina    Date: Feb 17    Category: Java    Views: 2047
  

I have a table with PK field as Varchar2.
accordingly I have value object representing the field with String member attribute.

now currently the pk value is running serial number starting from 1 and onwards.

in oracle we can write select max(to_number(pk_field)) from table;

but hibernate is not taking this query to get me the records.

Reason is to_number is not qualified method in hibernate scope.

anyone with solution on this ?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on to_number in hibernate? Or get search suggestion and latest updates.




Tagged: