Questions tagged [object-persistence]
147 questions
0
votes
1 answer
Using Persistent Store in BlackBerry
I am developing a BlackBerry application. I want to store the details of multiple users in my mobile. I have to store data like username, first name, last name ,email id ,phone number for each user. Can any one please provide me a sample code for…

user469999
- 2,101
- 4
- 24
- 30
0
votes
1 answer
ASP.Net EF not updating relationships
I've got a table which contains a bunch of assets that are organized into multiple hierarchies such that the table has a many-to-many relationship with itself (each asset can have multiple children AND multiple parents). I'm using the following…

Trevor
- 13,085
- 13
- 76
- 99
0
votes
1 answer
Fine-grained object model in hibernate
In the Hibernate in Action (Manning publication),
A major objective of the Hibernate project is support for fine-grained object models, which we isolated as the most important requirement for rich domain model. In crude term, fine-grained means…

Abimaran Kugathasan
- 31,165
- 11
- 75
- 105
0
votes
1 answer
db4o multiple store() and one close() doesn't work?
Hi
I'm using db4o in an android application.
I want to store multiple objects in a database so I have a loop that adds my objects in the db but if I don't put the close() IN the loop (after each store()), all the objects won't persist the next time…

Alexis
- 16,629
- 17
- 62
- 107
0
votes
2 answers
DB4O close() wipe the DB?
I'm using db4o to store different objects in an android application. I get json contents from a sever then them into Objects (contacts here) that I store in a db4o file.
ObjectContainer mainDB = Db4oEmbedded.openFile(dbConfig(),…

Alexis
- 16,629
- 17
- 62
- 107
0
votes
1 answer
Load Object from MongoDB with JPA (hibernate)
I created an @Entity and stored it in a MongoDB via Hibernate using the Java Peristence API (JPA) to be able to switch to another JPA implementation (like DataNucleus, EclipseLink etc.), but now I cannot load it in anymore. I get:…

loresIpsos
- 327
- 1
- 2
- 12
0
votes
1 answer
Which is better - relying on delegates or persisting through objects - iOS
After doing some reading I notice Apple pushes the use of delegates on controllers communicating with one another.
So say I have a Menu controller which needs to communicate with the help controller (and they need to share info - lol don't ask me…

dbobrowski
- 846
- 2
- 9
- 18
0
votes
3 answers
Restarting app without worrying about onSaveInstanceState
How do I simply just restart my ENTIRE app instead of trying to worry about saving the instance perfectly in onSaveInstanceState and reinitializing everything perfectly when resumed/restored in onRestoreInstanceState? (this can quickly become error…

zdanman
- 508
- 1
- 3
- 13
0
votes
2 answers
How do I persist data managed by NSArrayController without Core Data or NSKeyedArchiver?
I hope you'll excuse the seemingly broad nature of this question, but it gets quite specific.
I'm building a document-based Cocoa application that works like most others except that I am using SQLCipher for my data store (a variant of SQLite),…

Billy Gray
- 1,747
- 4
- 18
- 23
0
votes
2 answers
In python, how to make a list or dictionary persist across sessions without being overwritten immediately the code is run?
This is my first question on StackOverflow so please excuse any deficiencies.
I am trying to make a leaderboard for a game. It needs to add +1 to the rankings for the player that beats the game, then save the rankings to a file.
I've tried playing…

SAnderson
- 41
- 2
0
votes
3 answers
How to retry a lock wait timeout using java persistence?
I need some clarification on the right way to retry a "retryable" exception (e.g. something like lock wait timeout) when using java persistence. For example, with pseudocode like:
EntityTransaction tx = em.getTransaction();
tx.begin();
for (a bunch…

denishaskin
- 3,305
- 3
- 24
- 33
0
votes
3 answers
How to save the values if the app when its closed
i am new to iPhone programming..
my app is just like a quiz.. it has different type of quizs and many question in each quiz type
i want to save the values like strings(quiz name) and integers(question number) when an application is closed
so when…

rockey
- 638
- 4
- 16
- 34
0
votes
2 answers
Second level Cache in hibernate disabled by default
The session factory Cache needs to be explicitly configured in hibernate to fine tune the query performances.
Is there a relevant reason that can be agreed upon, why first level Cache(session specific) is enabled out of the box in hibernate while…

Karma-yogi
- 138
- 11
0
votes
1 answer
Are POCO objects just "persistent ignorant" or something more?
RPM1984 in this question speaks about POCO are "persistent ignorant" objects. But he doen´t speak about how much logic can hold. For example:
class Person {
public string FirstName { get; set; }
}
Or this:
class Person {
private string…

Andoni Ripoll Jarauta
- 101
- 1
- 8
0
votes
1 answer
cPickle class with data save to file
I've big class in Python it's "DataBase-like" class. I want to save it to file - all including data.
This is input(example to show the issue, in script database is like 10000 records):
import cPickle
# DataBase-like class
class DataBase:
class…

Rafal
- 129
- 1
- 3
- 7