Questions tagged [object-persistence]

147 questions
5
votes
2 answers

Python: strategies for persistently memoizing functions with function arguments?

I have written a little class to persistently memoize some expensive functions that do various statistical analyses of random networks. These are all pure functions; all the data is immutable. However, some of the functions take functions as…
5
votes
3 answers

Automatic persistance of node.js objects in database

While experimenting with some data indexing using node.js objects (arrays, maps...) that takes some time to populate (from DB data) at every startup of the script, I wished my node.js objects could be automatically and transparently persisted in my…
Adrien Joly
  • 5,056
  • 4
  • 28
  • 43
5
votes
5 answers

DTOs vs Serializing Persisted Entities

I'm curious to know what the community feels on this subject. I've recently come into the question with a NHibernate/WCF scenario(entities persisted at the service layer) and realized I may be going the wrong direction here. My question is plainly,…
Alexis Abril
  • 6,389
  • 6
  • 33
  • 53
5
votes
1 answer

Persistence with embedded forms

I am trying to set up some embedded forms using this guide. I have two models set up in my application, Lesson and Evaluation. Each Lesson can have multiple Evaluations. I have a form set up where the user can create a lesson and also as many…
Dan
  • 6,265
  • 8
  • 40
  • 56
5
votes
6 answers

Classic ASP Store objects in the session object

I am new to classic ASP and I need to code a web application in classic asp because the customer wants it to be in classic asp. :( Anyways! here is my question: When I have a object of a class called person: Class Person Private m_sFirstName …
Danny
4
votes
1 answer

Spring Data JPA check if a SET contains an object

I have a domain object called Device with this property @ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.EAGER) private Set authorizedDrivers = new HashSet<>(); I would like to make this query, but I got an error…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
4
votes
6 answers

Object persistence strategy for desktop application

I am developing a Java based desktop application. There are some data generated from the application object model that I need to persist (preferably to a file). There is also a requirement to protect the persisted file so that others can't derive…
hushan
4
votes
2 answers

How to correctly stream a TCollection property of a subcomponent, e.g. the Columns property of an embedded TDBGrid

I've been trying to boil down to an MCVE some code the author of another q sent me to illustrate a problem with a custom component. The component is simply a TPanel descendant which includes an embedded TDBGrid. My version of its source, and a test…
MartynA
  • 30,454
  • 4
  • 32
  • 73
4
votes
3 answers

Memory-Mapped Files & Transparent Persistence of Java Objects

Greeting All, I want to achieve transparent persistence of Java objects through memory-mapped files (utilize the OS paging/swapping mechanism). My problem is: how can I move a Java object to my memory-mapped block ? Plus, how can I force a new…
geeko
  • 2,649
  • 4
  • 32
  • 59
4
votes
1 answer

How to migrate an object which has been persisted with NSKeyedArchiver?

I'm using a version of Archiver and have run into an issue. In a previous version of my project a class, Challenge was serialized to disk //v1.0 @interface Challenge : NSObject { ... @property (nonatomic,strong) NSString *challengeId; …
Damo
  • 12,840
  • 3
  • 51
  • 62
4
votes
1 answer

DynamoDB and .NET Object Persistence Model, using 'ADD' values instead of overwrite

I have several DynamoDB tables that will act as aggregate data stores (we are 'rolling up' reports on the fly). I was hoping to use the .NET: Object Persistence Model (where you build classes that have annotations on them). The problem is the…
Richthofen
  • 2,076
  • 19
  • 39
4
votes
2 answers

NHibernate: Many-to-One - *Must* You Load the Parent Object?

Assume the following entity classes: public class Player { public virtual int ID { get; set; } public virtual string Name { get; set; } public virtual Team Team { get; set; } } public class Team { public virtual int ID { get; set; } public…
Jim G.
  • 15,141
  • 22
  • 103
  • 166
4
votes
2 answers

Optimal way to persist an object graph to flash on the iPhone

I have an object graph in Objective-C on the iPhone platform that I wish to persist to flash when closing the app. The graph has about 100k-200k objects and contains many loops (by design). I need to be able to read/write this graph as quickly as…
teabot
  • 15,358
  • 11
  • 64
  • 79
4
votes
1 answer

Persisting state in the android Application class

I am developing an Android application consisting of over 10 activities. I have some state objects that I access in almost every activity and for this purpose these were implemented as global static variables in the MyApplication class. I noticed…
rrdev
  • 115
  • 1
  • 12
4
votes
1 answer

When are Active Record objects in has_many relationships saved?

I'm using Rails 1.2.3 (yeah, I know) and am confused about how has_many works with respect to object persistence. For the sake of example, I'll use this as my declaration: class User < ActiveRecord::Base has_many :assignments end class…
Taymon
  • 24,950
  • 9
  • 62
  • 84
1
2
3
9 10