How to index a table with an ID with the type String
Hello,
I am having a table (a table which is in a production database), with a ID having the STRING type. (Not the best of practices :))
However, since I am not in a position to change the DB schema, is there a way to index that table using Lucene/ Hibernate Search?
I tried it but it says, "Exception in thread "main" org.hibernate.TypeMismatchException: Provided id of the wrong type for class"
I feel it is required to have and "int" for the ID field in the table. Is there a way to overcome this problem?
Thanks in advance