paulur wrote:
question is that all hibernate objects need to be deployed on application server. How can JUnit connect to objects on the server side?
Paul
What is the specific problem you are encountering ?
If you are writing code that uses hibernate to access the database, then test that code via a Junit test from the command line or IDE or whatever.
If you have hibernate code embedded in your server side code then test your server side code in exaclty the same manner as if you were coding manual SQL, whatever that is.
It almost sounds as if you are mixing business logic and persitence code layers.
THe persistence layer should be completely separate from the business logic layer, and should be capabable of being tested in a completely stand alone environment e.g. Junit test suites
I think this is an architecture question, not a hibernate question.