Spring Hibernate integration test returns unexpected result?

Or, have you set the reference of f. Parent during your setup, even you have setup the descendantList in the parent obj? It is possible that bernate's first level cache is keeping that empty-parent Class3 instance which you created through bernate and return to you.

I was using different methods for setting test data. Data for DAO tests were generated manually (persisted entities within ) and data for integration tests were generated by DBUnit from files. – melter Jul 25 at 12:39 My project is using DBUnit 2.4.8.

After setting up data generation in DAO tests by DBUnit I noticed that the problem was in the self reference of the data. The first row didn't have the parent_id column so the DBUnit ignored the column with the rest of the rows. Then I added the DTD for the the columns but that didn't help at all.So the current problem is how to set and load the test data so that parent-child relation is correct in application?

I added examples of test data and loading of it. – melter Jul 25 at 13:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions