posted 13 years ago
Hi All,
I am facing problem with Hibernate, while fetching the records from table.
Let me explain the problem first and later I will post my code.
Problem: I have written code to fetch the total number of records exists in a table.
So first time when I execute the Class it was returning 4 entries in the table, i.e correct
Next I am Inserting one row to the Table from back end (means using SQLYog I am inserting one row to the Table).
When I execute the same class Now also its returning 4 entries. where it should have to return 5.
I am Not able to get the latest records from the table which I inserted manually to the table.
hibernate.cfg.xml
JAVACode:
Please Help me in this Issue......