• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Test

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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... :
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic