Questions tagged [data-persistence]

256 questions
0
votes
1 answer

Java persistancemanager fetch return less entities

In java fetching entities with query some time return less entities in some rare case. I am using javapersistance manager. Is it ideal to use it or need to switch to low level datastore fetch to solve it? String query = "CUID == '" + cuidKey + "' &&…
Suganth S
  • 42
  • 3
0
votes
2 answers

Saving Bool/ tableView Checkmark - 3rd time lucky

This is third time I've posted this issues and am yet to get a working response. So I have a fitness app, the user selected one workout before it been displayed as table view, when a cell is selected I want it to show that cell(containing an…
0
votes
1 answer

How to save labels in InCopy?

It seems that when InCopy saves a document, programmatically added labels are lost. For instance, if I do this: app.activeDocument.insertLabel('myLabel', 'magicString'); The label is effectively added, as evidenced by…
0
votes
1 answer

Oracle SQL changes in sqldeveloper are not reflected in EFCore

I have not used oracle with EF before, so I dont know how to deal with this weird thing happening. And cant find solutions online. When I make changes on SQLdeveloper (updates/inserts) using sql, they are shown in SQLdeveloper, but not in app using…
0
votes
1 answer

How to handle race-condition (Synchronisation) in Java project using ElasticSearch as persistence

Problem: We have data stored in DB. For example, take a USER object which is stored. CRUD operations can occur on any of the USER. Is there any efficient way in which I can make these cruds as thread-safe if simultaneous operations come for the…
abhilash_goyal
  • 711
  • 1
  • 10
  • 31
0
votes
1 answer

Updating static variables of a class in python permanently

How can I permanently update static variables in a class? I found Static variables in python classes. However, this updates the variable only for the current script. When I reload my module, the variables are reset to there original initialized…
Govinda Totla
  • 576
  • 6
  • 19
0
votes
2 answers

ROOM Entity api field name starts with number

I have an API that returns an object that starts with a number, so I cannot parse it correctly with Room in Kotlin. @Entity(tableName = "1d") data class 1D( @SerializedName("percent") val percent: Double? ) Data…
Tom
  • 305
  • 5
  • 24
0
votes
2 answers

problem saving Entity objects from json string - how to inherit from codeable?

I have fetched a json string from a movie API. Right now I am holding the JSON in a String object and I want to iterate threw all of the json and create objects to fill an array of them. The thing is that the objects that I want to create are…
Alon Shlider
  • 1,187
  • 1
  • 16
  • 46
0
votes
0 answers

how to persiste data without calling any method?

Today on a class my teacher stated sth I had not heard before. she talked about some kind of data types which hold the data even after you close the program so that after you run the code again u can access the data u stored on the last run(without…
0
votes
1 answer

Adding NSUserDefaults to an iPhone checklist

I'm pretty damn new to iPhone development and I'm trying to get a checklist going with persistent data. I'm using a table with a checklist using [code from this tutorial].1 I've been trying on my own for a week or two trying to make this work with…
DanBroChill
  • 355
  • 1
  • 3
  • 8
0
votes
4 answers

Problems saving NSManagedObjects on a background Context

I've been struggling with this for days. I'll appreciate any help. I have a Location NSManagedObject and an Image NSManagedObject, they have one-to-many relationship, i.e., one location has many images. I have 2 screens, in the first one the user…
Dania
  • 1,648
  • 4
  • 31
  • 57
0
votes
2 answers

How can I clear the value of my Angular 2 ng-if textarea so that it's not passed

Right now I have two textareas that appear conditionally through the *ngIf directive based upon the user selection entered earlier in a prior select box. It works great except the for the fact that if they go back and change the value of the…
0
votes
1 answer

How to use sessionStorage for a webpage for a login user?

I have been using sessionStorage for a little bit now. As I came to know sessionStorage persist data till the window or tab is open. One we close the tab, sesstionStorage clears all data and create when new session is created. Now my Question is…
Asnau Nauticas
  • 197
  • 1
  • 4
  • 20
0
votes
2 answers

Using User Defaults to store data passed from another View Controller

I'm storing an integer using User Defaults, but the number I'm trying to store was transferred via segue (ageFromSettings) and needs to have a default value. The problem is that the data that was transferred via segue gets stored when presented,…
luker82
  • 31
  • 2
0
votes
1 answer

Core Data Persistence over application instances

I saved Core data context successfully. when I deleted application instance(only instance, not application itself), all saved managed objects at core data context are also deleted. But i want to persist these objects. Here is the snapshot of my…
Aaban Tariq Murtaza
  • 1,155
  • 14
  • 16