Top "Persistence" questions

Persistence in computer programming refers to the capability of saving data outside the application memory.

what is the right path to refer a jar file in jpa persistence.xml in a web app?

persistence.xml looks like this: <persistence-unit name="testPU" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence&…

hibernate jpa persistence java-ee-6 war
Easiest way to persist a data structure to a file in python?

Let's say I have something like this: d = { "abc" : [1, 2, 3], "qwerty" : [4,5,6] } What's the easiest way to progammatically get that into a …

python file persistence
Symfony2: get the id of the persisted object

I have two entity: User and Person. In the entity User I need the id of the associated person: user_…

database symfony persistence entity
Persistent DB Connections - Yea or Nay?

I'm using PHP's PDO layer for data access in a project, and I've been reading up on it and seeing …

pdo persistence database-connection
How to persist an enum using NHibernate

Is there a way to persist an enum to the DB using NHibernate? That is have a table of both …

nhibernate enums persistence foreign-keys
Persist variable changes between tests in unittest?

How do I persist changes made within the same object inheriting from TestCase in unitttest? from unittest import TestCase, main …

python unit-testing persistence testcase python-unittest
JAVA: an EntityManager object in a multithread environment

if I have multiple threads, each use injector to get the EntityManager object, each use the em object to select …

java persistence entitymanager
Is there a way to change the JPA fetch type on a method?

Is there a way to change the JPA fetch type on a single method without editing the entity object? I …

jpa persistence thread-safety dao fetching-strategy
How to insert images in mongoDB using java?

I want to store image documents in MongoDB. I am using java. Any links or suggestions would be appreciated.

java image mongodb persistence binary-data
React Context API - persist data on page refresh

Let's say we have a context provider set up, along with some initial data property values. Somewhere along the line, …

reactjs persistence react-context