Questions tagged [data-persistence]

256 questions
0
votes
0 answers

How to detect first app install on Mac

I have an app that gives freebies to users the first time they install the app. So, cheaters can simply uninstall, delete data stored in Application Support and get the freebies infinitely. Possible solutions: Store data in NSUserDefaults: not…
DARKMATTER
  • 361
  • 5
  • 14
0
votes
1 answer

JPA 2 and generic classes

in my Data Model I need to have a generic Table "DICTIONNARY" that store all values in the data base like this : TYP KEY VALUE --------------------------------- COUNTRY TUN TUNISIA COUNTRY FRA …
daly
  • 43
  • 1
  • 1
  • 9
0
votes
1 answer

onSavedInstanceState not working on return to the activity

used intent from a button click to go to another activity and then later return back to the original activity. i tried to save two integers on leaving the activity for the other activity, then later when i return back to the original activity i get…
Kevik
  • 9,181
  • 19
  • 92
  • 148
0
votes
1 answer

Hibernate with Spring batch - select scope_identity() appended after Insert query

I have a VO with the following fields - HD_REC_ID REC_TYP_CD SRC_SYS_NM SRC_TYP_CD RCV_SYS_CD JOB_STTS_CD IDX_FILE_NM IDX_FILE_LOC_TXT XTRCT_DT XTRCT_TM DTL_REC_CNT ATCH_CNT ERR_MSG_TXT PROC_MODE_CD INVLD_HD_REC_TXT CRT_TS The annotations used are…
zeus1208
  • 78
  • 2
  • 9
0
votes
1 answer

Hibernate: need update parent entity without pulling all its child-cascade

I faced the problem when I need to partially udate data in BD. What I have: I have three linked entities: Profile --(1-m)--> Person --(1-1)--> Address Where Person -> Address is lazy relationship. It was achieved via optional=false option (that…
VB_
  • 45,112
  • 42
  • 145
  • 293
0
votes
1 answer

Issue with persistent data and handling

OK, first let me describe you my situation : I have a list of books (let's say List Books) For each book, we need several details, e.g. Author, Title, etc Now, here's the deal : I've set up a full catalog (as XML), which I'm able to…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

Adding wordpress post ID's to a persistant collection

I am using wordpress posts with multiple custom meta to display may items. The items are searched for and added to a collection (or cart) This resembles a commerce solution which are widely used in wordpress I don't understand where they store the…
Taylorsuk
  • 1,419
  • 1
  • 16
  • 51
0
votes
0 answers

Android SharedPreferences auto incrementing technique

I wanted some feedback on this approach. My apologies if this is confusing or nonsensical. (thats probably why I'm asking because im unsure.) My app auto assigns clientID's to a textview at first launch - is auto set to 100. To do this from that…
natur3
  • 236
  • 1
  • 3
  • 14
0
votes
1 answer

Saving and retrieving history iphone

In my app i am uploading various types of data such as image, audio, video, text. Now i want that user should be able to view the most recent 100 items uploaded even when he quits and reopens the app. For this i will create a view which will contai…
0
votes
1 answer

Data that persist between activity and service (aidl)

I have spent 6 hours trying to solve this issue without success. I have 2 applications which communicate through a AIDL service. Here is the source code: Application A : protected void onCreate(Bundle savedInstanceState) { ... Intent i = new…
johann
  • 1,115
  • 8
  • 34
  • 60
0
votes
2 answers

Saving an object to table that has relationship with another table using hibernate

I have 2 tables. Student (id,name,class_id)
class(id,name) student relates to class table through class_id after using hibernate and generate into object, I'll have 2 objects Student { int id; String name; Class class } Class {int id; String…
Kien Dang Ngoc
  • 1,079
  • 5
  • 15
  • 25
0
votes
1 answer

Updating core data entry

I'm working with core data to save scores for a game, and need help updating an entry when a score is beaten. This is where I'm at. I write the data the first time the app launches like this: LevelData *levelOne = [NSEntityDescription…
Kyle Goslan
  • 10,748
  • 7
  • 26
  • 41
0
votes
4 answers

write data structure into a file using binary mode

code looks like this: struct Dog { string name; unsigned int age; }; int main() { Dog d = {.age = 3, .name = "Lion"}; FILE *fp = fopen("dog.txt", "wb"); fwrite(&d, sizeof(d), 1, fp); //write d into dog.txt } My problem is what's…
Alcott
  • 17,905
  • 32
  • 116
  • 173
0
votes
1 answer

MVC 3 Checkbox to Database

I am looking to create a view with a drop down box which lists programming languages from a table in a database. This I have no issues with, but I also want 10 check boxes called Level 1 till Level 10. Now these 10 Levels already are in a seperate…
0
votes
1 answer

How to save a web-application state dynamically?

I would like to create a web application where a user can drag and drop images and text onto a div or similar container. Then, when the user clicks a save button, the application would be able to save the content of the dropped items, as well as…