Questions tagged [object-persistence]
147 questions
2
votes
2 answers
Need to update the primary key on existing objects in GAE Java
I am building a web app using GAE Java. I have a class that uses a Long ID (generated by appengine) as its primary key.
I now want to create a new class that would be the parent class to this original class (a one to many relationship) however the…

user242153
- 151
- 8
2
votes
2 answers
Tracking PHP Object property changes
I'm trying to track all changes made to a PHP variable. The variable can be an object or array.
For example it looks something like:
$object = array('a', 'b');
This object is then persisted to storage using an object-cache. When php script runs…

bucabay
- 5,235
- 2
- 26
- 37
2
votes
1 answer
How can I "map" in ORMLite a base object that all Database entities extend
I have an object that I call BaseObject which all classes that are persisted extend. This class has an _id field, dateCreated, dateModified, etc.... The database tables that correspond to all objects that extends this base object obviously have…

pleasantstranga
- 231
- 2
- 14
1
vote
2 answers
Closing children windows from Javascript
I have been searching high and low for a solution to my problem and can only find pieces of the puzzle with no way to connect them. I have a window (which it self is a child of the main window) that can open multiple other windows. I want the…

MGraffia
- 13
- 3
1
vote
2 answers
On android how would I create a class that extends Location Listener so that both my main activity and Intent Service can use the same object?
So I'm planning create an app that needs to obtain the user's location and it's going to have a class called LocationController that implements the LocationListener interface.
What I want to achieve is that as soon as the the main activity (call it…

racl101
- 3,760
- 4
- 34
- 33
1
vote
0 answers
Persistence and faces
I have been learning / working on J2EE projects for about 3 months now and this is what i know..
How to create a database in mysql (In truth i have been doing that with perl and php for 12 years)
I can find my way round netbeans enough to create…

user845854
- 81
- 3
- 9
1
vote
2 answers
C# Equivalant of Javas @DynamoDBTyped(DynamoDBAttributeType.BOOL)
I had this question but there was no C# answer, only Java ones (DyanmoDb is storing value 1 instead of boolean value true) so posting this.
There is no way I know of that allows you to use the Object Persistence model for DynamoDB and ensure that…

Dhruv
- 63
- 5
1
vote
1 answer
Problem querying a DynamoDB GSI Composite key using .NET Core Object Persistence Model
I want to query a GSI composite key using OPM. I followed the documentation example the link for which is as follows:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBContext.QueryScan.html
However I am facing two issues:
1).…

Gowthaman
- 59
- 9
1
vote
1 answer
Store a headerFilter with a persistent layout in Tabulator 3.5
I try to store my filter field into JSON object during the navigation process and get this Javascript issue in tabulator.js:
Options Error - Tabulator does not allow options to be set after initialization unless there is a function defined for that…

Adrià MC
- 11
- 1
1
vote
2 answers
Maintaining Android Activity's data: onPause, onSaveInstanceState, onRetainNonConfigurationInstance
I have an application Activity that in onCreate loads an XML file from a service using an AsyncTask. The XML is parsed into an ArrayList. When I switch to a different activity and then back to the main activity, I want to be able to recognize that…

typeoneerror
- 55,990
- 32
- 132
- 223
1
vote
0 answers
Storing context object in Request object, is it disposed of?
I am writing a MVC3 application, using NInject DI and repository pattern. Ninject is set up so that the repositories have a per-request lifetime.
I am putting the context object into the Http Request object, using the following code:
public…

Cynthia
- 2,100
- 5
- 34
- 48
1
vote
2 answers
MySQL table creation with Spring + Hibernate
We came across the following situation.
Please note that I know reserved words should not be used for table names, but I'm asking the question anyway out of curiosity more than anything.
We are using Spring + Hibernate to manage our database. I am…

Nico Huysamen
- 10,217
- 9
- 62
- 88
1
vote
3 answers
Is it possible to write a truly generic disk-baked B+Tree implementation?
I wrote a generic in-memory B+Tree implementation in C++ few times ago, and I'm thinking about making it persistent on disk (which is why B+Tree have been designed for initially).
My first thought was to use mmap (I'm under Linux) to be able to…

fokenrute
- 739
- 6
- 17
1
vote
1 answer
A non pesistant super class for 5 persistant classes w/same 3 sometimes persistant fields?
I can't solve this problem.
Can anyone tell me it it is possible to solve it?
I have a five-table database that requires 5 persistent classes.
All 5 need to carry these 3 String fields:
field1, field2, field3.
HOWEVER. Each of the 5 persistent…

George
- 509
- 2
- 9
- 25
1
vote
2 answers
Is there a pattern for using XML for no-overhead object serialization?
In the same way that you can use JSON in javascript? At least the static properties?
Or maybe even for hash-table streaming?
Is it oversimplistic about hoping to find something like
Object.Serialize(stream) where stream is a file, overrideable…

dkretz
- 37,399
- 13
- 80
- 138