| Author |
Hibernate Test
|
Neil Muya
Ranch Hand
Joined: Oct 26, 2009
Posts: 30
|
|
Hi Ranchers,
My Team is currently developing a WebApp , and my part is with the DAO Implementations.
Currently what I am doing is, after I finish creating a hibernate dao, I run the webapp,
and run debug mode in eclipse in order to test if what I have done is correct.
My question is, Is there a way to test this hibernate dao's without running the webapp,
Well i know that on start of the webapp the web.xml will be loaded and hibernate config as well.
But is there a workaround so that I can just run a java app in order to test what I have done?
like a static main method that could test the hibernate dao?
Thanks and Regards,
|
 |
Gaurav Tripathi
Ranch Hand
Joined: Aug 25, 2010
Posts: 94
|
|
|
If you have built the DAO layer with JPA then you can easily test the application (DAO part) as standalone. Only thing you need to tweak is Persistence configuration part.
|
- Gaurav (http://visitgaurav.blogspot.com and http://in.linkedin.com/in/gauravtripathi)
|
 |
akshit kumar
Greenhorn
Joined: Jul 03, 2006
Posts: 13
|
|
you can check the dao by running the application directly through a simple.java class and pas parameters there
anyone having any better method for this... :
|
Looking for new ideas if you don't get one steal one . SCJP
|
 |
 |
|
|
subject: Hibernate Test
|
|
|