Dear all
I use hibernate 3.2.1
I have some code as below
Code:
Criteria cri = this.session.createCriteria( Book.class )
.add( eq( "type" , "food" ) )
.addOrder( Order.asc( "serNo" ) );
cri.setFetchMode( "authorInfo" , FetchMode.JOIN );
final List<Book> list = cri.list();
In the list , I expect the object type is com.test.book.
But all the object type in the list is com.test.book_$$_javassist_29
Because I use java reflection to do something in my code.
The object type will have influence.
Are there any wrongs with my code?
Thanks in advanced~