CHAR « Fetch « JPA Q&A





1. Hibernate Collection Fetch problem with fixed length CHAR    coderanch.com

I have 2 simple tables called ITEM ( primry key ID CHAR(10)) and BID (FK ITEM_ID CHAR(10) references ID(ITEM)). Both primary key and foreign keys are CHAR(10) In the entity I have a bidirectional one to many relationship( Item to Bid [1..N]) Hibernate is not retrieving the list of Bids from Item instance. I am doing eager fetching.The generated sql is ...