Questions tagged [persistence]
Persistence in computer programming refers to the capability of saving data outside the application memory.
5,112
questions
1
vote
2
answers
34
views
Localstorage values resetting after re-openning browser on iphone
I'm trying to use localstorage as in http://www.sharonminsuk.com/code/storage-test.html
I've copy / paste both html and Js on my nginx backend server.
I've tried with nodejs too.
On my smartphone, ...
0
votes
0
answers
23
views
Hibernate persistence.xml Unmarshall exception
I'm trying to config a hibernate database through persitence.xml file. I currently have the following persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ...
0
votes
1
answer
39
views
Bal persist returns the error `related entity does not have the corresponding relation field`
Consider the following Ballerina code,
import ballerina/persist as _;
type Phone record {|
readonly string id;
string number;
boolean textOK;
boolean whatsappOK;
boolean callOK;
...
-2
votes
0
answers
20
views
Whare is the Jakarta persistence.xml location in a simple java project [closed]
I’m working on a simple Java project without a build tool.
So I can get the persistence.xml to be seen by the Persistence.createEntityManagerFactory. So the library dose can not find my configuration ...
0
votes
0
answers
13
views
RxDB RxDatabaseBase DexieError
I am trying to implement signalDb with RxDB
Just following this example by signalDb
(Here's the source code of this example)
Ang I got this error:
DexieError {_e: Error
at getErrorWithStack (http:...
1
vote
1
answer
25
views
iOS: NSAttributedString - writing to data loses adaptive text color
I want to use text color in my NSTextVeiw / UITextView that adapts to the system appearance. Dark mode, white text, otherwise black text. I have the following NSAttributedString:
#if os(iOS)
let ...
0
votes
0
answers
20
views
Hibernate Core Jar migration from hibernate-core-3.3.0.SP1.jar to hibernate-core-5.4.24.Final.jar
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitManager" ...
0
votes
2
answers
33
views
Change persisted class in JPA
I have my User class, which has its own table, and the Organizer class, which also has its own table and is a specialization of User. How do I make an already persisted User in JPA become an Organizer ...
0
votes
0
answers
16
views
Can't move Jsreport files since utilizing azure-storage for persistence
I recently updated my kubernetes deployed docker container of jsreport to use an azure-storage container for persistent storage. It effectively loads and saves files to the storage account as I create ...
0
votes
1
answer
46
views
How can I save the change of colour in a button in Swift?
I'm starting with Swift and Xcode and I'm trying to make a simple app where I have a bunch of buttons with names inside. When I tap on one button, its background colour (white) and the colour of the ...
0
votes
0
answers
43
views
LiteDB database doesn't persist between sessions
I've been using liteDB to store some values. However i tried setting up a 2. db to save some different values and those ones do not persist between application restarts. Embeds does persist. General ...
0
votes
0
answers
69
views
how to create a custom registration authenticator in keycloak that stores user after the email verification and data to be non-volatile
I already created a registration authenticator by implementing the authenticator interface. I want to verify the user email, and then I want to store the user in Keycloak.
I don't know where I can ...
0
votes
0
answers
3
views
Terminal Persistence just doesn't work sometimes, named/colored terminals just go missing from one day to the next
This feature:
https://code.visualstudio.com/docs/terminal/advanced#_persistent-sessions
I think it is just the revive part that I care about. I have 2 on-premises Exchange orgs and EXO to manage on ...
0
votes
0
answers
35
views
How to persist an array of images, returning a list of documentURLs so I can re load them later in Swift?
Trying to persists an array of UIImage and return an array of the saved file paths in func encodeReview, but keep hitting
Mutation of captured var 'encodedImages' in concurrently-executing code
at ...
0
votes
0
answers
22
views
Where are dokku persistent storage files actually stored on a Mac host machine?
Where are dokku persistent storage files actually stored on a host machine? The documentation says the location is /var/lib/dokku/data/storage/ - but that directory doesn't even exist on my macos m2 ...
1
vote
0
answers
360
views
Is it possible to have a single data Entity using SwiftData? (non-array, like persistent app settings)
I would like to have a settings entity with SwiftData. I would like it to store my active entity that the user was working with when they last used the app, plus a few other settings that I would like ...
0
votes
0
answers
28
views
QueryDSL How to CROSS join Expression such as StringExpression or StringTemplate instead of EntityPath?
I need to implement the following query:
select
et.id,
obj ->> 'item' as item,
from example_table et,
json_array_elements(et.data::json -> 'rows') obj
where obj -> 'item'...
1
vote
0
answers
31
views
Legend state persistence plugin is not setting on local
I am trying to working with legend state persistence plugin in local. I do all the setups and imports are ok.
But localstorage value is not setting. And indexDB's database name legend and table `store'...
1
vote
1
answer
11
views
How to control the total row count of a stream table in DolphinDB?
I need to insert records to a persistent stream table, but I'm concerned about it growing too large.
I aim to cap the row count at specific rows (e.g. 1000). This would not only reduce memory usage ...
0
votes
0
answers
27
views
EntityManager is null if not created Manually
I work on a maven project which is deployed as a runnable jar on a server.
Unfortunately my EntityManager stays null if I not assign it manually.
Persistence.xml
<persistence-unit name="...
0
votes
0
answers
53
views
How to correctly use Netbeans 19 "restful web services from entity classes"?
To get clarity on the feature, I used Netbeans 19 on OpenJDK 17 and created a new Java with Maven/Web Application.
In there I created one entity class, named WorkItem. Apart from the fields that the ...
0
votes
1
answer
65
views
Redis Background Rewrite AOF completed with error
I've redis deployed on windows server 2016.
appendonly.aof file volume is getting bigger, taking all disk free space.
I tried to do a BGREWRITEAOF to reduce it, but it terminated with error.
[6268] 12 ...
0
votes
0
answers
29
views
How to maintain the viewContext as a variable so I can leave the page while keeping viewContext saved
I have a function that saves to viewContext while in a detailView. The function grabs the users location, so it isn’t instant. The function works properly if I stay on the detailView for the item I ...
0
votes
0
answers
55
views
kotlin access modifiers extending generic abstract class with internal class as generic parameter
I am trying to implement Business objects, so i have PEmail (persistance object) class and BEmail (business interface).
And others as follows
class EmailImpl internal constructor(persistent: PEmail): ...
0
votes
1
answer
34
views
Jpa/hibernate why detached entity merged partially?
When i fetch entity from entity manager then make it detached and trying to delete related entities there is no changes in database to them. In other words after entity manager is closed (that is ...
0
votes
1
answer
65
views
How do I have multiple separate Core Data entity types within one app
I am creating my App mostly in Swift Playgrounds for iPad, so I am not actually using the Core Data tool on XCode. With the help of tutorials I have created a PersistenceController and a Data Model. ...
0
votes
0
answers
96
views
General error: PDO::ATTR_STATEMENT_CLASS cannot be used with persistent PDO instances
I am using laravel 10 and PostgreSQL 12.15 (Debian 12.15-1.pgdg120+1).
It takes some time to make new connection for each request so keeping the connection alive should make requests faster. Hence I ...
0
votes
0
answers
22
views
Coredata structure for one-to-many or many-to-many relationship without duplicates
Im working on an app which provides audios to its users. These audios are called sessions. There are series/Playlists with multiple sessions. Then there are Content Groups with multiple sessions, ...
0
votes
0
answers
33
views
Jpa/hibernate problem while merge entity after remove related entity from it
I have two classes A and B that have many to many relationship. When i delete one item from list of B in class A and trying to merge this is doesn't work.
public class Main {
public static void ...
0
votes
1
answer
181
views
nfs share storage class to multiple volume
I have one NFS server. What I understood by reading PV and PVC is mapped 1:1. What I didn't get is the relationship with storage class.
Let's say for multiple services multiple directories I want to ...
0
votes
0
answers
13
views
Persistence of function parameter between calls in Python function [duplicate]
I don't understand the behavior of this code:
>>> def buggy(arg, result = []):
... result.append(arg)
... print(result)
...
>>> buggy('a')
['a']
>>> buggy('b')
['a', ...
0
votes
0
answers
130
views
How to add persistence storage volumes to Traefik and cert-manager in a k3s cluster?
I used nfs-subdir-external-provisioner for the deployment of the nfs in k3s cluster. I also tested with the given test-claim.yaml and test-pod.yaml files which works fine.
Now, following this to ...
0
votes
1
answer
230
views
Persistent Volume content gets deleted after StatefulSet / Deployment restart
The contents in my Persistent Volume is getting deleted when the StatefulSet or Deployment restarts and new Pods are getting created.
I thought the idea of having Persistent Volume is to have it's ...
0
votes
1
answer
64
views
Jooq Java Code to handle more than 200k records from a table
The table in my database has more than 200k records and I don't want to fetch all of them at once in the resultSet to process. I am trying to write a function in a service that calls another ...
0
votes
1
answer
128
views
Bitnami Grafana-operator persistence problem
I am trying to deploy bitnami/grafana-operator to AKS with persistence. I want to be able to create Dashboards in UI and they to be persistent. I am using Helm chart, where the persistence.enabled is ...
0
votes
0
answers
21
views
Question about tutorial: "spring-data-jpa-multiple-databases", could there be an easier way?
https://www.baeldung.com/spring-data-jpa-multiple-databases
According to this link you need to set up configuration class etc. To me it seems like a lot of work, for something that we could only ...
0
votes
1
answer
90
views
What is data persistence status on iOS 16.6 and latest safari?
As this answers are obsolete for latest iOS and Safari versions, does have anyone conducted a tests or investigation of how it is now?
As stated here, the "Storage Management: Persistent" ...
0
votes
1
answer
93
views
Firebase Persistence not working on React Native
When I close or reload my app, I am always logged out, no matter the persistence. Any ideas?
My persistence implementation:
import { getReactNativePersistence } from "firebase/auth/react-native&...
5
votes
0
answers
384
views
Sharing SwiftData with iCloud users
has anyone figured out how to use swiftdata in SwiftUI with CloudKit to share data among other users and set permissions? Thank you!
I checked apple’s documentation along with the internet in general. ...
1
vote
1
answer
130
views
How to define a persistenceprovider for a getEntityManager method?
I am trying implement a template for my Model classes in my java/servlet project, with methods for create tables, insert, update, delete and select data. the start point for all this methods is this ...
0
votes
1
answer
27
views
Cannot download artifact that was generated in a previous build
I'm trying to persist some data from one pipeline run to another. Essentially my pipeline works like this:
First download the data, if it exists (the data is a text file with a number in it)
Run a ...
0
votes
0
answers
14
views
java persistence error. javax.xml.bind.UnmarshalException: unexpected element (uri:"http://xmlns.jcp.org/xml/ns/persistence", local:"persistence")
the version of tomcat ee is 7.0.81
I try to use java persistence to store data in database. but when I add the both dependencys and create the persistence.xml file. I will occur some error.
here is ...
0
votes
2
answers
64
views
How to get collection from a list of detached entities?
Here is my code
public class Start {
public static void main(String[] args) {
AuthorHelper authorHelper = new AuthorHelper();
Author author1 = authorHelper.getAuthor(4L);
...
0
votes
1
answer
37
views
IOS Save Video From User Persist after Device Restart
I am trying to get a video from a user's library, and for the application to be able to play them back that video whenever they want. Currently I am saving it as a bookmark but this gets wiped on ...
0
votes
0
answers
34
views
Hibernate: cloning entity gives "Removing a detached instance" exception on children
I'm trying to clone an entity, removing some children, and save the new entity, but I'm getting an IllegalArgumentException: Removing a detached instance package.Child and I don't understand why. I ...
0
votes
1
answer
46
views
How you can capture the value of Cause By in a Hibernate PersistenceExceptionException in Quarkus
Good morning, I am currently working with persistent java to consult a Stored Procedure in an Oracle DB, and I am catching the exceptions through a catch, however, I have a problem with the ...
0
votes
1
answer
27
views
Enterprise development with Java
I am doing this course called enterprise development with java. Our lecture gave us the below code, but i am getting error messages saying the import javax.persistence connot be resolved. Ive been ...
1
vote
0
answers
116
views
Persistent data structures in Rust
How to implementing a basic persistent data structure that utilizes structural sharing? The code provided below is functional, but I would like to receive input on whether this approach is suitable ...
0
votes
0
answers
88
views
How to have both: clean architecture and synchronization between domain models and persistence?
Imagine a *.sln with 4 projects:
Project.Storage (business logic models and interfaces to implement by infrastructure layer)
Project (main logic)
Project.Storage.EntityFramework (persistence layer ...
0
votes
1
answer
152
views
Stackoverflow at predeployment of PersistenceUnit Jakarta EE10
The migration of a Webapplication from Java EE8 to Jakarta EE10 based on Payara Fish 6.2023.6 failed during deployment.
WARNUNG: Unsupported deployment descriptors element schemalocation value https:...