Persist JPA Entity to a file system  
Author Message
redbull





PostPosted: 2007-11-1 3:32:00 Top

java-programmer, Persist JPA Entity to a file system Is there a way to persist a EJB3 entity to a flat or xml file to test
an application if you don't hava a database at hand?

I thought I have read something about it lately but I (google) can't
find it.

Many Thanx
Andre Broers

 
Roedy Green





PostPosted: 2007-11-1 4:27:00 Top

java-programmer >> Persist JPA Entity to a file system On Wed, 31 Oct 2007 19:31:33 -0000, redbull <email***@***.com> wrote,
quoted or indirectly quoted someone who said :

>Is there a way to persist a EJB3 entity to a flat or xml file to test
>an application if you don't hava a database at hand?

Will ordinary serialization work?

see http://mindprod.com/jgloss/serialization.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Kenneth P. Turvey





PostPosted: 2007-11-1 4:41:00 Top

java-programmer >> Persist JPA Entity to a file system >>Is there a way to persist a EJB3 entity to a flat or xml file to test
>>an application if you don't hava a database at hand?

You can always use derby or hsqldb to test the code.

--
Kenneth P. Turvey <email***@***.com>