Currently I use the JPA to persist data in DB like derby via eclipse link.
Is there official option to store data in java in the memory and not in persistence layer?
Examples will be very helpful
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just user Derby in-memory mode:
Connection URL:
But remember that the database will not be persisted at all (which means that you will start with a blank database every time that you run your application). To make a in-memory database persistent you need to call: