Joined: Thu Sep 27, 2012 7:25 pm Posts: 1
|
We've created a Scheduling web application using hibernate. I'm using JSF Prime Faces and native Hibernate (not JPA). The issue I'm running into is that I will make a new instance of an event that is supposed to show up on my schedule. I've looked at the mySQL database and the item has been successfully added to the database.
What is NOT happening however is for the schedule piece to actually show the new entry until I hit refresh maybe 10-20 times.
I've tried session.clear(); session.flush(); setting the cache mode etc
but no matter what I seem to do I can't get the new item to seem to show up in a reasonable time frame. I'm pretty sure its a Hibernate issue because I will do a criteria.list() and it will show 1 less entry for the database than there actually is. After refreshing closing opening or just waiting a while it will finally show the correct number of records.
I would love any suggestions you guys could offer. I assumed that my criteria was hitting the cache or something but I thought I disabled it so I'm unsure what the next steps are. Unfortunately, the code is at work so I can't post any snippits right now but hopefully I've been descriptive enough to make a little sense.
Thanks!
|
|