Hello to all!
I´m developing some kind of social network using Hibernate´s reverse engineering. It´s also my first experience with Hibernate so you can imagine the headaches i´ve had.
Well, i´ve been working for 3 months and now i have it workin' but not at %100. I have two problems and i would appreciate very much any help or advice.
1 - When i lift up the server sometimes some tables are locked, but i can´t find out the reason. Sometimes is one table, sometimes is another. It´s not the code (or at least i think so) because i recompile and refresh and the table that wasn´t working works, but another doesn´t. I´m getting: Could not insert in X Lockwait Timeout excedeed
This is driving me mad!!!!!
2 - Sometimes im getting different data for the same stimulus. I´m using <property name="hibernate.connection.isolation">2</property> since i had this problem. Also i generated th Equals and hashcode using GETTERS for the id´s. I had to do this because equals by id (and not getId()) was malfunctioning. I think this happened because the ids weren´t initialiazed, so using getters (ergo lazy-loading... am i right?) was a solution. But it still happens sometimes!!!!!!!!!!
ANY help or advice would be really really appreciated. Thank you all and sorry to bother.
|