Questions tagged [object-persistence]
147 questions
0
votes
1 answer
Persistent Objects in ASP.NET
I'm trying to find the best way to persist an object or in use the same object at a later point in the code. So, I create an object, then you're redirected to another page(a form) that needs to use variables from that object. That form is submitted…

user204588
- 1,613
- 4
- 31
- 50
0
votes
1 answer
Easy object persistence in Vala (like shelve/pickle)
I would like to transfer my code from Python to Vala, but i ran into problems.
Is there an easy method to store objects created in Vala, like you can do it with pickle/shelve? I would like to avoid running an entire database.

fahrradflucht
- 1,563
- 3
- 14
- 22
0
votes
1 answer
In Domain Driven Design, does the Repository pattern maintain a reference to the objects?
I understand that the repository pattern abstracts the persistence of domain objects, allowing a developer to read/write/delete objects from persistent storage without knowing how the object is stored (SQL, NoSQL, flat files, etc). I'm quite fond of…

Magnus
- 101
- 5
0
votes
2 answers
easy object persistence strategy - hibernate?
I'm doing a Java software-project at my university that mainly is about storing data-sets (management of software tests).
The first thing I thought of was a simple SQL DB, however the necessary DB scheme is not available for now (let's say the…

wishi
- 7,188
- 17
- 64
- 103
0
votes
1 answer
File Upload Error in Classic ASP
Set PersistsUpload = Server.CreateObject("Persits.Upload.1")
PersistsUpload.Save
set persistsfile = PersistsUpload.Files("file")
When I am uploading the file the following error is returned:
Request.BinaryRead failed: Unspecified error

user2717544
- 1
- 2
0
votes
1 answer
How to persist instance of a class in Python
Is there a way to persist instances of a class in memory or file system in Python? Can I do this with shelve?
The following line is part of this tutorial which takes a long time to execute, and I need to cache it for next program executions.
clf =…

hpn
- 2,222
- 2
- 16
- 23
0
votes
1 answer
Using joda DateTime Range Key with AWS DynamoDB Object Persistence model
I've got a dynamodb table with a timestamp ("creationDate") as a range. The model is using a joda DateTime to make it easy to use (compatibility with the rest of the code). To be able to make between queries on this range, I used a numeric type for…

cplc
- 33
- 1
- 5
0
votes
1 answer
Object Persistence in Python with many files open
I'm trying to save the state of my program using pickle, so that I can jump to different states with objects created on a different run.
The issue is that virtually all of these objects (there are quite a few) all have logger objects, so they are…

H X
- 43
- 1
- 7
0
votes
0 answers
How to Override GetChildren and GetChildOwner to persist objects?
I have been trying to choose a solution to store/restore some objects from files in my new Delphi project, and so far the most promising and more educative option I found was in a blocko blog post but he fails by not explaining how to Override…

NaN
- 8,596
- 20
- 79
- 153
0
votes
0 answers
Bindings, properties and object persistence
First: I really hope I placed the question at the right place so please correct me if I am on the wrong track..!
I have a window to display data that is updated in intervals in a table view. This data is managed by a Controller object which is the…

Simon
- 577
- 3
- 9
0
votes
0 answers
Persistent Object defined by a CronJob on Rails
I have a report that takes too long to be assembled, so I would like to make a CronJob (with rufus scheduler gem) to generate the report after midnight when there´s no traffic on my application.
The question is: do I need to save the result of the…

Hamdan
- 183
- 15
0
votes
1 answer
Hibernate creates two primary keys when I only want one
I have a Hibernate class called Expression (simplified here for your viewing pleasure):
@Entity
public class Expression {
@Id
@GeneratedValue
private long id;
private String data;
@OneToMany(fetch=FetchType.EAGER)
…

Han
- 5,374
- 5
- 31
- 31
0
votes
1 answer
CoreData: base class attributes not persistent
I have created a simple base class with 3 parameters (OBJECT1, see below) and implemented a Core Data model where there is one entity derived from this class, with one attribute (order).
Problem is, when I save the context, only the dynamic…

user1595462
- 155
- 1
- 9
0
votes
2 answers
Spring repository generation versus property naming convention
I'm using javax.persistence and Spring and I have a simple entity class and a simple CrudRepository that are working well until I try and add my own findByXXX() method.
My entity class is as follows:
@Entity
public class Node
{
@Id
…

dave
- 11,641
- 5
- 47
- 65
0
votes
2 answers
Storing a NSArray of my Custom Objects in NSUserDefaults
The requirement is that I want to store NSArray of my custom objects in NSUserDefaults.
Following is the code from my example
- (void)viewDidLoad
{
[super viewDidLoad];
sampleArray=[[NSMutableArray alloc]init];
MyClass *obj1=[[MyClass…

TryinHard
- 4,078
- 3
- 28
- 54