posted 15 years ago
Hi,
I'm writing a web application using the Stripes framework which will eventually do basic CRUD actions on a MySQL database.
For the moment (I'm still in the real early stages) I'd like an easy way to get some data in the system (for read only). I was wondering if there was some solution whereby I could type up some sample data in an XML file , such as name, address, postcode etc and have this read by my DAO?
I have a DAO interface and I could write an implementation class to read from this XML file, and eventually swap out the implemtation for something in Hibernate, but I'm not sure how to go about this, or how I can find examples
My other idea was to write a class that loops through instances of my domain object and uses the setters to set properties on my domain object, eventually returning one big list, but I think that would be incredibly messy
Any suggestions?
Many thanks