Questions tagged [data-persistence]
256 questions
0
votes
1 answer
What is the best way to implement record updates on an ORM?
I'm writing a simple code generator in C# for automating common tasks on bussiness applications such as data binding, model and viewmodel generation and record updating.
The generated code uses a data mapper that implements equallity by reference…

Rafael
- 2,642
- 2
- 24
- 30
0
votes
0 answers
Could not update the existing JDO object and persist the new updated data
I have been trying solutions from multiple threads but of no luck yet.
Anyone who can get a quick harp on what is happening in by code? I have shared my update code below. Appreciate quick assistance.
@ApiMethod(name="updateContact", path =…

thatzprem
- 4,697
- 1
- 33
- 41
0
votes
1 answer
Best to way to implement data persistence when orientation changes in android?
Basically what the title says. Currently if the orientation changes in my app the ball resets back to the top of the game, however I wish to change my code so that if the user changes orientation of the device the ball and racket stay in the same…

user3584935
- 51
- 1
- 9
0
votes
1 answer
ERP: Is there a design pattern for updating data for a department while keeping the old data for a second department during a certain time?
Not so complicated as the title suggests. Imagine two departments in a Company: Sales and Manufacture. While data (in an ERP software) in Sales may represent contracts, Manufacture has to deal with the production established by these contracts (ex:…

PDuarte
- 111
- 5
0
votes
0 answers
0
votes
0 answers
Grails. How to enable Hibernate persistance for only several domain classes
I have the multitier web-application.
It has the REST-service and the WEB-component on the additional external server.
But both are use the same domain classes (I write the standalone plugin for them).
The REST-service is needed database access and…

wwarlock
- 443
- 4
- 14
0
votes
0 answers
Sharing user session in a database stripes framework
I am using Stripes framework for my webapp. Currently we have a requirement to implement load-balancer. To manage the user session some how I have to store the session data and access it in multiple servers to avoid logging out of users.
I am new…

Bhabani
- 138
- 1
- 7
0
votes
1 answer
Hibernate LazyLoading no session
I have two jsps trying to access this database routine (via action class). When i have no try/catch/finally routine and no commiting transaction or closing of session then i can get the results but only the first time. When the next jsp tries to…

jsky
- 2,225
- 5
- 38
- 54
0
votes
0 answers
Is it possible to use a class method to update a set that is one of it's attributes? (i.e. writes in itself)
Well, i believe an example will provide a better understanding:
class FileFormats():
def __init__(self):
self.a_set = {gif, jpg, png}
def add_value(self, a_value):
self.a_set.update(a_value)
I tested and it doesn't work…

Joao Guedes
- 51
- 1
- 5
0
votes
1 answer
Liferay Service Builder - Database Persistence
i understand that persistence layer is where you store your data, and that not all data is persisted in the same manner -- some use databases, some use XML, some use a remote service.
What then is (as a verb) Database Persistence? I'm studying…

ONOCHIE
- 3
- 2
0
votes
1 answer
Save and remember UIElement values after segue without using core data?
I have a mini-workout application, the root is a UITableViewController and each cell segues to a specific TVC that has its own specific settings denoted by UISliders and UISegmented Controls (As shown by the image).
Of course when I navigate back to…

Cescy
- 1,921
- 3
- 18
- 21
0
votes
1 answer
How to store an image inside imageview permanently
I am new to android.
I created an Image View to display an image from the file browser and this is working correctly.
The problem is once i come out of my application and open it again. The image I selected isn't there in the image view.
That means…
0
votes
1 answer
store json array as json string in database
I have a business object called Schoolyear which has a flags enum at the moment:
[Flags]
public enum VisibleDayOfWeek : int
{
None = 0,
Monday = 1,
Tuesday = 2,
Wednesday = 4,
Thursday = 8,
Friday = 16,
Saturday = 32,
…

Elisabeth
- 20,496
- 52
- 200
- 321
0
votes
2 answers
How to write a query with "or" statements in iBATIS?
I want to get data using a dynamic query or statement using iBATIS.
For example
select * from USERS where ID=1 or ID=12 or ID= 3 or ID=27.....
and I want to pass set of IDs as a List Object.

ishanaba
- 65
- 8
0
votes
1 answer
extjs store update not firing
I'm using Extjs 4.1 MVC, I have a simple store :
Ext.define('Proj.store.GraphData', {
extend: 'Ext.data.Store',
model: 'Proj.model.GraphData',
autoLoad: false,
proxy: {
type: "ajax",
reader: {
type: 'json',
root: 'data'
…

salamey
- 3,633
- 10
- 38
- 71