Top "Persistence" questions

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

JPA with TopLink: No META-INF/persistence.xml was found in classpath

public class LoginTest { public static void main(String[] args) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("IRCBotPU"); EntityManager em = emf.createEntityManager(); em.getTransaction().…

java jpa persistence classpath toplink
Difference between configuring data source in persistence.xml and in spring configuration files

I've seen (and done) data source configuration in two ways (the code below is just for demo): 1) configuration inside persistence …

java spring jpa persistence
What is the difference between a session and a transaction in JPA 2.0?

I just begin my JPA 2.0 studies, and I have this piece of code: em = SessionFactory.startSession(); tx = em.getTransaction(); My …

java hibernate orm jpa persistence
PersistenceUnit vs PersistenceContext

In few project I have been successfully using @PersistenceUnit(unitName = "MiddlewareJPA") EntityManagerFactory emf; ... EntityManager entityManager = emf.createEntityManager(); to obtain EntityManager …

java jakarta-ee jpa persistence entitymanager
Unsure if I understand TransactionAwarePersistenceManagerFactoryProxy

I am trying to use the org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy in my Spring project, but I am not sure …

java spring persistence dao jdo
Ways of unit testing data access layer

I have be trying to look for an effective way in unit testing my data access layer in C#. I'm …

c# unit-testing testing persistence data-access-layer
Generating a globally unique identifier in Java

Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have …

java persistence uuid uniqueidentifier
How to access *.mv.db file of H2 database?

I have created database with my own program and it appeared as mydatabase.mv.db file. But when I tried …

java persistence h2 dbvisualizer
Remember (persist) the filter, sort order and current page of jqGrid

My application users asked if it were possible for pages that contain a jqGrid to remember the filter, sort order …

jquery cookies persistence jqgrid filtering
How to do multiple column UniqueConstraint in hbm?

Working on some legacy hibernate code. How do I do the following with hbm.xml(hibernate mapping file) instead of …

hibernate persistence constraints unique-constraint hibernate-mapping