Questions tagged [object-persistence]

147 questions
2
votes
2 answers

android application/activity life cycle: when should we save to flash?

I have an app that is composed of many activities. Each activity can modify the project in some way. I'm saving this project to flash by serializing a few objects and saving them to flash. Now, If the user leaves the app, it's possible that it gets…
luca
  • 12,311
  • 15
  • 70
  • 103
2
votes
2 answers

Hibernate @Id @GeneratedValue annotation doesn't recognise increment ID generated by DB2 Database

Inserting a second record using Hibernate 3 into DB2 v9.x where a column has a Unique primary key column Id generated by DB2 doesn't work with persisting my Hibernate entity. Inserting the first record works fine, however unless I manually increment…
Dawud
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

In JDO (AppEngine), after persisting an object, how can i get the key of that particular object?

When I persist an object to the datastore, when (and how) can I get the key of that particular object that I just persisted? So for example, if I have: @PersistenceCapable public class Employee { @PrimaryKey @Persistent(valueStrategy =…
2
votes
4 answers

How to save 100 objects to server with ajax and php?

Let say I have a page with 100 objects and each page is around 700 bytes when converted to json. In order to save the objects to the php based controller I have the following options. Option 1 For each objects (100 objects) do the following Take…
Nilesh
  • 2,015
  • 3
  • 19
  • 21
2
votes
1 answer

nHibernate Exception: Unable to cast object of type

I am running into an nHibernate error while saving an object. The classes involved are: interface IHardwareSpecification { //fields and methods } public class CPUSpecification : IHardwareSpecification { //fields and methods } public…
fjxx
  • 945
  • 10
  • 20
2
votes
7 answers

C# Persisting Objects Between User Sessions Without using a database

I'm making a simple Winforms that reads in a text file and does some parsing to put it into C# objects that are then manipulated by my app. I would like to parse the file once. Then go away for a week, come back and load all the objects back into my…
AJM
  • 32,054
  • 48
  • 155
  • 243
2
votes
2 answers

C++ object persistence library similar to eternity

I'm looking for a C++ object persistence library to replace the Eternity library that I've been prototyping with for about a day. The Eternity library came up short. I've created an object hierarchy similar to this: I have an std::list of…
user206705
2
votes
1 answer

Lambdas, closed-over variables, display classes, serializability, and prevalence layers

I've implemented a prevalence layer for Compact Framework (including a BinaryFormatter-like serializer). I'd like to be able to serialize the compiler-generated classes that result from such things as lambdas and iterators where appropriate, so…
Jeffrey Hantin
  • 35,734
  • 7
  • 75
  • 94
2
votes
1 answer

Android object persistance: Ektorp and CouchDB

Hi: Has someone experience with object persistence on Android by using ektorp and CouchDB? Including the 'Simple Logging Facade for Java (SLF4J)' jar is necessary to try this out. I tried to get it running but I still get a…
Sney
  • 2,486
  • 4
  • 32
  • 48
2
votes
1 answer

How does persistence change object architecture?

I'm working with classes in PHP. When I'm writing a class, I'm always thinking "This object is basically a one-off; it's not going to last beyond the page load." Consequently, all the logic in my classes basically construct themselves, do a few…
user151841
  • 17,377
  • 29
  • 109
  • 171
2
votes
1 answer

JPA and unique fields

I have two persistence objects in my app: Things and tags attached to things. The app can generate collections of things with tags attached. Tag objects have a unique name (it doesn't make sense to tag something twice with the same tag). When…
Nils
  • 13,319
  • 19
  • 86
  • 108
2
votes
4 answers

Data denormalization and C# objects DB serialization

I'm using a DB table with various different entities. This means that I can't have an arbitrary number of fields in it to save all kinds of different entities. I want instead save just the most important fields (dates, reference IDs - kind of…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
2
votes
1 answer

Can't figure out why Sereal encoder/decoder round-trip is not returning proper object

With all the hating on Storable -- I decided to check out Sereal for serialization needs. Plus I was having some issues with 32bit/64bit cross platform issues with Storable, so I figured this would be a good time. After having some issues, I boiled…
mikew
  • 912
  • 2
  • 11
  • 22
2
votes
1 answer

BlackBerry persistent object /storage nuance question

I'm using PS to store data in my app. I think I have a misunderstanding of how PS works. If anyone could tell me how to make it so that the bill I retrieve from PS is unencrypted as opposed to the encrypted bill I end up with? Note: I originally…
Dan Gifford
  • 886
  • 1
  • 9
  • 33
2
votes
3 answers

Large list of dictionaries as a lookup table on disk

I have a very large list of dictionaries (GBs in size) obtained from an API. I would like to use it as a lookup table for other functions. There are several object persistence methods in Python, but what would you recommend for storing lists of…
dust
  • 502
  • 6
  • 19