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

Persisting data objects on the iphone

I was wondering what your thoughts were on persisting objects (NSDictionarys and NSMutableArrays of Objects) on the iPhone? I've gone through a couple of options in my head: 1.) We persist using NSUserDefaults, this method seems the easiest and I…
kodai
  • 3,080
  • 5
  • 32
  • 34
2
votes
2 answers

JPA's context injection

I'm trying to use JPA's Context Injection. Currently my code fails to have the context injected, throwing a NullPointerException: Exception in thread "main" java.lang.NullPointerException at …
Dan
  • 1,041
  • 2
  • 14
  • 22
2
votes
1 answer

The initWithCoder: function is not called from unarchiveObjectWithData:

I'm trying to unarchive an array of objects of a particular type, but the initWithCoder: function does not get executed within the object's class. Instead, I'm given the error: *** Terminating app due to uncaught exception…
Taz
  • 1,203
  • 1
  • 11
  • 21
2
votes
2 answers

How can I specify dependency in JPA without links from owner entity?

The goal is to remove all Dependent when their Owner is deleted. I have the following classes: @Entity class Dependent { @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY, optional = false) @Column(name = "OWNER") …
oakjumper
  • 23
  • 4
2
votes
1 answer

spring hibernate configuration using resource_local or jta by default?

may i know as my configuration is done directly on applicationContext.xml, i do not have persistence.xml . by default this is resource_loca or jta? do i need to add extra parameter if i want to use jta?
cometta
  • 35,071
  • 77
  • 215
  • 324
2
votes
6 answers

Are there any database-like persistence layers available for .NET?

I'm trying to tackle the problem of disconnected operation for an application with a relatively rich data layer, and it occurs to me that the most natural way to make this work is with a client-side database. I don't want to have to install a…
Mike Burton
  • 3,010
  • 24
  • 33
2
votes
2 answers

Implementing Python persistent properties

In a class, I want to define N persistent properties. I can implement them as follow: @property def prop1(self): return self.__prop1 @prop1.setter def prop1(self, value): self.__prop1 = value persistenceManagement() …
Christian O'Reilly
  • 1,864
  • 3
  • 18
  • 33
2
votes
1 answer

What is a persistence engine (like ActiveRecord)? Advantages? Disadvantages?

I've heard all this talk about Rail's persistence engine (ActiveRecord). I did a search on it and I couldn't really get a clear idea of what it did. It seemed like it was an Object mapping to a database but that's all I came up with. If so do they…
Matt
  • 22,224
  • 25
  • 80
  • 116
2
votes
1 answer

What is the point of @MappedSuperclass if it can't be used with queries and the entity manager?

I have some tables that have some common columns and I thought that when creating entities I would have the entities extend a class where all of the mapping is defined: @MappedSuperclass public class AbstractLogMaster implements Serializable { …
KidTempo
  • 910
  • 1
  • 6
  • 22
2
votes
1 answer

Implementing a client-side persistence manager in C++

I have a 2-tier application (a heavy client written in C++ which connects to the object-oriented database). The database itself is InterSystems Cache', and it is actually both a database and an application server (Cache' is also a MUMPS…
Bass
  • 4,977
  • 2
  • 36
  • 82
2
votes
2 answers

Two different positions for the JPA annotations

I am working on JPA and JSF. I found two ways to put the annotation: 1. Above the instance variable. public class Project implements Serializable { @ID @NotNull private Long idProject public Long getIdProject() { return…
user2354035
2
votes
2 answers

Entity is not mapped exception when entity used in EJB module

I've got a problem with entity mapping. Here is JBoss containing several modules, one of them contains package with entity mappings annotated with @Entity @Table(name = "PG_ATTR_A") public class PgAttrA // declaration omitted } In separate…
user1455836
  • 752
  • 6
  • 18
2
votes
2 answers

Clarification on javax persistence named query using the like statement

I have a named query to search for customer name as shown below. This is currently matching all the customers whose names have the specified search criteria in any part of their name (equivalent to %search%). "SELECT t FROM Customer t WHERE t.name…
user1082762
  • 107
  • 1
  • 5
2
votes
0 answers

Use JBoss JPA 2.1 on JBoss EAP 6.1

I am using JBoss AS 7.1 and JBoss EAP 6.1. I packaged all libraries and classes in one WAR file and deployed it in two application servers. When I run the same codes inside WAR on AS 7.1, it is working fine, but not on EAP 6.1. I use JBoss JPA for…
2
votes
2 answers

persistence.xml transaction-type="JTA"

Is this perisistence.xml file correct, especially when i transaction-type="JTA" ?
kuba44
  • 1,838
  • 9
  • 34
  • 62
1 2 3
99
100