bob54724 wrote:
[quote="pksiv]
Can you enter data manually, and then try and query it ?
Thanks for your quick reply. Yes, my JUnit class runs fine and inserts data into the table. So I'm guessing this isn't really a mapping issue?? But I'm new to Hibernate so I could be wrong.[/quote]
I would look at how your SessionFactory is being configured - in the Portlet code - and make sure it's finding and loading the classes/mappings.
Also, if you have data in the database you are using, can you just try and code a simple query against it and see if it retrieves the rows correcly ?
It won't (always) throw an exception on a query, it just won't return any results.