Questions tagged [object-persistence]

147 questions
1
vote
1 answer

NHibernate NonUniqueObjectException when reattaching objects to the session (with Lock)

Basic order of execution: A collection of PersistentObjects is queried then cached separately from the session. The collection is passed to a module that needs to reattach them to the session in order to lazily load some of the properties (using…
Joel
  • 19,175
  • 2
  • 63
  • 83
0
votes
1 answer

java hibernate runtime exception

I'm trying to use Java Hibernate. I tried to run the HelloWorld example from http://www.manning.com/bauer2/chapter2.pdf. But I have run into some trouble. The jar version I'm using is not the same as in the book. So, I have to get rid of the…
Abraham Guchi
  • 181
  • 1
  • 2
  • 11
0
votes
1 answer

Is this a known format for persisting an object?

I am analysing a system that persists HTML form input data like this: a:2:{s:4:"form";a:1:{s:10:"labelWidth";i:150;}s:6:"fields";a:4:{s:15:"disp ... Does anybody know if this is a known, documented format? Looks a bit like JSON.
Jannie Theunissen
  • 28,256
  • 21
  • 100
  • 127
0
votes
1 answer

Internal storage of Classes and Structs

I want to use pointer magikry to save a C++ class using the following method that writes byte data into a file: result Osp::Io::File::Write (const void *buffer, int length); Parameters: buffer — A pointer to the user-supplied buffer that contains…
John
  • 6,433
  • 7
  • 47
  • 82
0
votes
1 answer

Cross Browser, Object Persistence Library for Client Application

I'm creating a client based application in HTML Application (HTA) and I would like to know if there's a object persistent library similar to python's shevle that meets the following criteria: Should be able to read and write on file Cross browser:…
OnesimusUnbound
  • 2,886
  • 3
  • 30
  • 40
0
votes
2 answers

Ruby daemon process to keep objects alive for transient Ruby instances

Does Ruby offer a mechanism to share variables (more importantly, class objects and any other data abstractions I deem useful for that matter) between different running Ruby processes? For example if I have a class instantiated, initialized and…
Marcos
  • 4,796
  • 5
  • 40
  • 64
0
votes
1 answer

How to change a single querystring parameter, possibly via a control action?

In the last three days I've struggled trying to find a way to accomplish what I though was supposed to be a simple thing. Doing this on my own or searching for a solution in the web, didn't help. Maybe because I'm not even sure what to look for,…
Andrea Sciamanna
  • 1,404
  • 1
  • 15
  • 30
0
votes
1 answer

object-database: Changing the class hierarchy

I am reading me into object oriented databases right know and have to make a little presentation. Something I don't get and nowhere can find is following problem: What happens with the data of the database when I change my class hierarchy. For…
0
votes
1 answer

Issue with persisting specific relation with Doctrine2 ODM

I am using Doctrine 2 MongoDB ODM, all working fine except 1 specific relation. What's obscure is that I have seemingly identical relations in the project and they all work just fine namespace Project\Entities\World; // same NS as class, but this is…
NoxArt
  • 351
  • 3
  • 17
0
votes
2 answers

Is it ok to have a non persistent variable in an entity?

When using an ORM, is it breaking some kind of good practice to have a model class with a few non-persistent properties, which are only used for calculations, and then can be safely dropped? Let's say we have a Product. This Product has list of…
BenMorel
  • 34,448
  • 50
  • 182
  • 322
0
votes
2 answers

Save object with Hibernate annotations?

I just wanna ask know how its possible to create object after creating your database with Hibernate annotations? When i run the code below, it creates the database with the objects, but when i run the second time it just creates exactly the same,…
0
votes
1 answer

Business Entity contains persistence functionality

Is there a name for the pattern in which business objects contain their own persistence mechanism? For example: public class Customer { public string Name { get; set; } public int Id { get; set; } public void Save() { //…
0
votes
1 answer

Assigning persistent object on a controller's constructor that uses DI in ASP.NET Core

So maybe there were several ways to phrase that question, but that's clear enough. I have a regular class library separate from my web project (which is built on Angular2 and Asp.Net Core) and I must persist its "core object" state throughout the…
makoshichi
  • 2,310
  • 6
  • 25
  • 52
0
votes
3 answers

Persisting a control's properties

OK Time for another dumb Q from yours truly. I have a control that has some properties that need to be persisted in the ViewState. I also need to make sure that the properties aren't overwritten if the control appears more than once on the page. I…
Stuart Hemming
  • 1,553
  • 2
  • 21
  • 44
0
votes
0 answers

shelve module on windows

I'm trying to add object-persistence to my python app. I'm currently using python 3.4 on windows. The only module I found useful was shelve but on windows, it appears, it creates three different files rather than one: 'db.bak' ,'db.dat' and…