Questions tagged [persistent]

Generally in ORM and OOP , a persistent object refers to an object that exists (or persists) in the database

771 questions
0
votes
1 answer

Is there a way for mapping object to relational database via MyBatis at runtime?

I create Java classes and their instances at runtime (Java Compiler API) and I want to map them to a database with the help of MyBatis API also when program running. Is there some way to do this in MyBatis?It's really important and any help with…
MainstreamDeveloper00
  • 8,436
  • 15
  • 56
  • 102
0
votes
2 answers

Persistent increment counter

I have a concept for a special albeit simple kind of clock that would display the number of seconds since a certain point in time (which would never change). What would be the best way of storing, incrementing and displaying this persistent value?
Bobe
  • 2,040
  • 8
  • 29
  • 49
0
votes
2 answers

How to implement a file based persistent stack?

I have an API to login to a system. It doesn't support concurrent login with the same user id (I guess due to license). However this code can be called by different processes/clients launched by different users from another system, in my case, a…
0
votes
2 answers

Sequence Numbers in Java Persistence Inheritance

An application is developed with JSF and JPA. @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) Bill is the Parent class and subclassed to OpdBill, PharmacyBill, etc. Multiple users may try to persist at the same time. It is easy to…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
0
votes
1 answer

How to persistent Map in JPA in GAE

I don't know why I can't persistent MAP in JPA in GAE AnnualReport thatyear = ....... if (stud.getAnnualReport() == null){ Map temp = new HashMap(); temp.put(thatyear.getAttrKey(),…
0
votes
2 answers

Interact with the database through HTTP or socket connection?

At the minute I have several hundred queries every few seconds sent from one C# program (lets called it Program1) to a HTTP server, which then processes the XML content using business logic and updates the database as appropriate. Would it be more…
0
votes
1 answer

Persistent objects inside MVC framework

I'm writing my own PHP MVC framework and I was wondering which is the most appropriate place to code persistent data objects like User for instance. Without persistent storage like $_SESSION, APC, memcached,... someone could retrieve user data from…
user1517081
  • 965
  • 2
  • 11
  • 30
0
votes
0 answers

jQuery mobile how to retain visibility of non-JQM content after HIJAX?

Using Jquery mobile for the first time for the basis for a web app... I have an
0
votes
1 answer

Best way to persist CoreData objects on user logout (NSUserDefaults?)

I've developed a feature for an app that stores it's information in a CoreData object. This data persists when I shut down the app, but not when a user logs out and logs back in. I need the data to persist. Some notes: 1) Some of the other data…
0
votes
1 answer

Python Persistent TCP client

I need to connect to my server(not http) with a persistent connection, to speed up some things. Could I have an example of how to do this?
user1599078
  • 167
  • 1
  • 3
  • 9
0
votes
2 answers

php maintaining state

This will be a newbie question but I'm learning php for one sole purpose (atm) to implement a solution--everything i've learned about php was learned in the last 18 hours. The goal is adding indirection to my javascript get requests to allow for…
Rob F
  • 529
  • 6
  • 17
0
votes
4 answers

Persistent data on serverside

I'm creating a webserver using C# codebehind pages. What I want is for one user to view and submit something on the page, and that the data is stored serverside, in such a way that it's persistent, AND that ANOTHER user can view this data. Am I…
Henrik Kjus Alstad
  • 674
  • 2
  • 9
  • 24
0
votes
2 answers

State of a persistent object in a Hibernate session

I've got a probably embarrassingly easy question regarding Hibernate: When I've got a persisted instance of an object, and some of these object's properties are modified inside the same Session, are those changes visible for me too? Or do I have to…
user321068
0
votes
2 answers

persistent store entries remain but data is empty when rebuilding

I'm working on an App that uses a persistent store to save and retreive data. I have it all working, but there is some curious behavior that makes me doubt very much if what I'm doing is correct. When I build my App, some values are loaded into the…
eelco
  • 218
  • 1
  • 9
0
votes
1 answer

How to have a persistent array in RESTlets for multiple requests to access

I'm using Restlets for a REST architecture. The REST classes accesses a database and returns the results as JSON. I have an instance where I only want to go to the database once and store the results in an arraylist so that every subsequent REST…
Atma
  • 29,141
  • 56
  • 198
  • 299