Nick Otten
Nick Otten

Reputation: 712

Derby db data included in project?

I'm currently working on a project for school with a rather big data model. Right now I use the constructor of the model class to fill it with static data. Now I want to get rid of that and put all the data in a database. But without the need of a external server. I have to hand over the project in the end to have it rated and getting a 0% rating because my internet blacks out yet again would be very disappointing.

After quick look around I found out about derby. But I'm unsure where the thing stores its data. Is the database + data included in the project? Even when I export it as a .jar? If not is there any alternative that does these two things?

Upvotes: 0

Views: 44

Answers (1)

Bryan Pendleton
Bryan Pendleton

Reputation: 16359

I think the explanations you're looking for are most easily found here:

http://db.apache.org/derby/docs/10.10/devguide/cdevdvlp21955.html

and

http://db.apache.org/derby/docs/10.10/devguide/cdevdvlp40724.html

Specifically, the second link takes you to the section of the documentation describing how a database is stored on your file system, and how you can package a (read-only) database into a jar file if you want.

Upvotes: 1

Related Questions