Questions tagged [persistence]

Persistence in computer programming refers to the capability of saving data outside the application memory.

Persistence is the capability of saving data outside of application memory, and of retrieving it later for further processing.

Typically data can be stored into the file system, in flat files or in a database. But persistence can also involve sending data to external applications.

Often persistence is related to .

References.

5099 questions
2
votes
3 answers

What is a simple way to get ACID transactions with persistence on the local file system (in Java)?

I'm working on a small (java) project where a website needs to maintain a (preferably comma-separated) list of registered e-mail addresses, nothing else, and be able to check if an address is in the list. I have no control over the hosting or the…
T.R.
  • 7,442
  • 6
  • 30
  • 34
2
votes
2 answers

POF Serialization/Deserialization malfuncions with Date?

I'm building a persistence tester to test if the data I'm trying to persist is correct the process is something like this: Store data in variable var1; Persist data in variable var1 to a coherence cache; Read the data stored in cache and store it…
SaintLike
  • 9,119
  • 11
  • 39
  • 69
2
votes
2 answers

Java JPA Hibernate Connection Issue

I'm using Netbeans to connect to a database. I want to use Java persistence to retrieve data from the database but I'm getting these errors: jun 18, 2014 9:41:44 AM org.hibernate.annotations.common.Version INFO: HCANN000001: Hibernate…
Hubertokf
  • 308
  • 1
  • 4
  • 12
2
votes
2 answers

PersistenceJS: Updating an existing database using migrate()

I'm currently trying to make changes to an existing DB using the migrations plugin for PersistenceJS. I can add/edit/delete items in the DB just fine — but… How to add a column to an existing(!) table? How to change the type of an existing(!)…
robro
  • 1,730
  • 23
  • 26
2
votes
3 answers

ASP.NET MVC Session usage

Currently I am using ViewData or TempData for object persistance in my ASP.NET MVC application. However in a few cases where I am storing objects into ViewData through my base controller class, I am hitting the database on every request (when…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
2
votes
3 answers

SPPersistedObject and List

I want sharepoint to "persist" a List of object I wrote a class SPAlert wich inherit from SPPersistedObject : public class SMSAlert: SPPersistedObject { [Persisted] private DateTime _scheduledTime; [Persisted] …
Sam
  • 129
  • 2
  • 15
2
votes
1 answer

How to delete data from org.hibernate.collection.PersistentBag? | Hibernate (Jpa)

The List Mylist is org.hibernate.collection.PersistentBag... and i want to delete this Mylist... How i can do it?? QriteriaBuilder criteriaBuilder = em.getCriteriaBuilder(); CriteriaQuery criteriaQuery =…
user3515151
  • 97
  • 2
  • 10
2
votes
0 answers

Using Git/SCM as Application Persistence Layer

I just read SQLite As An Application File Format. While it makes a great case for using SQLite as a persistence layer for single user, single device type apps; it does not seem to lend itself well for multi-device or multi-user and multi-device…
justinzane
  • 1,897
  • 1
  • 26
  • 38
2
votes
2 answers

Hibernate Weblogic 10.3.4 java.lang.NoSuchMethodError: javax/persistence/spi/PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;

I'm running a weblogic 10.3.4 (Yes I know it a legacy version, but I'm not the one dictating the version...) on a Ubuntu 12.04 LTS. When deploying a JPA (hibernate) webapp on the server I get java.lang.NoSuchMethodError:…
user3612503
  • 21
  • 1
  • 2
2
votes
1 answer

Replacement for ToAttributedValueConverter in XStream Object

I'am using the ToAttributedValueConverter via class annotation: @XStreamConverter(value = ToAttributedValueConverter.class, strings = { "text" }) public final class Message { private final String text; // Needed for XStream serialization …
Vertex
  • 2,682
  • 3
  • 29
  • 43
2
votes
2 answers

EntityManager.persist() not inserting values to DB

im new to JPA and Servlets. I'm trying to create Student Entity and insert that to my DB using a Servlet. there are no errors in the code. When I go to the Servlet, it worked without errors in the Browser. But the values are not inserted to my…
2
votes
2 answers

Persistent dictionary where keys can be anything hashable

I'm implementing a small "persistent" version of functools.lru_cache, where "persistent" means that the cache is not destroyed between subsequent runs. To this end, I thought I could simply replace the dictionary that functools.lru_cache uses by a…
gerrit
  • 24,025
  • 17
  • 97
  • 170
2
votes
6 answers

Will NHibernate attempt to save the same object twice in this scenario?

Lets say I have two entities: Stable, and Pony. Stable has an IList with a HasMany mapping configured with Cascade.All(). That means that if I do session.Save(myStable), each Pony in the collection will be saved. However, what happens if I do…
snicker
  • 6,080
  • 6
  • 43
  • 49
2
votes
2 answers

Properties.Settings.Save() only saves on first call

I have a DataGridView populated with a BindingList. This list gets saved into the Settings file. It saves and loads correctly.. but will only save the first time I call Properties.Settings.Save(). After that, calling Save() will do nothing. I…
BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283
2
votes
1 answer

Yii: where does it store sessions

I understand, how to manage user authorization using Yii built-in mechanism, but its unclear for me where is stores sessions. I don't see any new tables in my database, but login persists, which means there is a persistent storage on a server-side…
Denis Kulagin
  • 8,472
  • 17
  • 60
  • 129