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
2 answers

Can I use JPA without an external persistence provider?

I am trying to use JPA with Spring MVC, mySql. I understand from here What's the difference between JPA and Hibernate? that JPA may be used independently, but most web sources descibe it as only a specification, for which I need an implementation.…
SKaul
  • 349
  • 2
  • 7
  • 22
2
votes
0 answers

Ebean not understanding Inheritance relationship in models

I am developing a new system using postgreSQL with Ebean within play framework 2.2.1. They are all defined as Single table with a String discriminatory column. When I start the server it compiles but then I get this not very informative stacktrace…
le-doude
  • 3,345
  • 2
  • 25
  • 55
2
votes
1 answer

Why isnt Properties.Settings.Default being saved?

I wrote this to quickly test Why arent my settings being saved? The first time i run this i have 3(old)/3(current) elements. The second time i get 3(old)/5(current), third time 5(old)/5(current). When i close the app the settings completely…
user34537
2
votes
2 answers

Platform-independent way to get a path to store program data

Is there a platform-independent way to get a path to store program data in Java? This is surely a very basic question but I can't seem to find the answer anywhere. I am looking for a path to store user data such as user preferences or historical…
Adam Burley
  • 5,551
  • 4
  • 51
  • 72
2
votes
3 answers

Object Oriented Model on top of LINQ to SQL

I'm playing a bit with LINQ to SQL and overall it's a much better option than what Microsoft had before (DataSet), but it seems that object-oriented capabilities are still limited. Since we currently use a custom persistence framework that created a…
Albert
  • 1,015
  • 2
  • 10
  • 28
2
votes
2 answers

Tapestry - Persistent data is overridden when user opens a new tab

I am using annotation @Persist(PersistenceConstants.SESSION) to make some data persistent. Problem is that, when user opens a new tab of the same page type, the persistent data is overridden. I want the data to be persistent per page and not per…
Pratik Patel
  • 1,305
  • 1
  • 17
  • 44
2
votes
1 answer

How can i configure one hibernate sessionFactory for multi persitenceunit

I am trying to migrate my application from jboss As 5 to jboss As 7.1.1.final. I have 4 databases from mssql and 1 db from postgres. I have before a har service that provide one sessionfactory and i want to do the same thing forjboss as 7 (not…
2
votes
2 answers

Using Enum in Model (domain) Class with hibernate - could not resolve property - exception

In table I am saving integer values for applied, selected, not selected etc... What I thought is to use Enum in Java Domain class. I tried implementing it. While I am calling this domain from DAO, I am getting some weired error. Please find the…
Vignesh Gopalakrishnan
  • 1,962
  • 9
  • 31
  • 53
2
votes
1 answer

Persistance in JBoss wildfly (in a spring application)

I have a spring 3.2 application which has defined persisence with the following configuration:
Serafeim
  • 14,962
  • 14
  • 91
  • 133
2
votes
1 answer

Hibernate: map a foreign key that points to unique key

I have a table with composite primary key composed of two columns and that table also have a unique key. That unique key in another table is mapped as foreign key. How to implement this mapping with Hibernate? I make an @Embedable class for the…
vladislavn
  • 388
  • 1
  • 8
  • 20
2
votes
1 answer

CS-Script persistent cache for better performance when loading scripts

Is there a way to persist CS-Script internal assembly cache between subsequent application's runs? Used component: http://www.csscript.net/ The desired behavior is: when I compile an assembly form a script string and I close the application, the…
Vojtěch Dohnal
  • 7,867
  • 3
  • 43
  • 105
2
votes
1 answer

JPA with OSGi example returning null in serviceReference

I have been working on demo example where JPA would be used with OSGi. The thing is, I am able to start/stop the service after bundling however I am not able to get the serviceReference. Due to this my JPA implementation is not getting…
Amrit
  • 2,295
  • 4
  • 25
  • 42
2
votes
0 answers

greendao complex Protobuf Object Mapping

i am developing an Android-Application where complex data is synched with an server. This data is formatted in protocol buffers. For persistence i now try to use greenDAO, because it has "protobuf support". How do i create complex Entities without…
Marco Hübers
  • 111
  • 2
  • 6
1 2 3
99
100