About Persistence Context

Hi,
I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is:
...
Use ctrl + right click to open the browser context menu
in the editing area (e.g. for using a browser spell ...

Explains how to use JPA to delete (remove) entity objects from the database.... that are stored in the database is based on transparent persistence, which means that changes are detected and handled automatically.
... Interface used to interact with the persistence context. See JavaDoc Reference Page... 's method is invoked to ...

Hi,
I have a question about package name and searching for entities. As for now we were using two different databases for two different parts of our system. But we want to make a 'common' model for both systems. After merging entities from two different projects, we get single jar with all entities. Unfortunately some of the names are the same for entities:
- homplex.model.dbobject.Inspiration
- pl.hplxtool.model.Inspiration
... is that even if I specify full name with package in persistence.xml and set "exclude-unlisted-classes" for true, ODB is looking for ...
Use ctrl + right click to open the browser context menu
in the editing area (e.g. for using a browser spell ...

Hello,
I have a persistent class which looks something like this:
@Entity
public class Test {
private String string;
private Date date;
@Transient
private boolean test;
// getters/setters
}
When I persist the class the transient 'boolean test' is stored in the database, maybe I am doing it wrong but I expect...
my persistence class screenshot of explorer after persistence class ...
Use ctrl + right click to open the browser context menu
in the editing area (e.g. for using a browser spell ...

I have two simple Entities ( see attachment ) and a simple SLSB with container managed transactions which is called by a trivial servlet.
Inside a UserTransaction I add a number of items then check to see that they have been added
... = - 1 ;
try {
InitialContext context = new InitialContext ( ) ;
javax. ... ) ;
} catch ( javax. persistence . NoResultException ex ) {
return - ...

Hi,
I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.
Here is my setup:
------- Start persistence.xml -------
... feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.
Here is my setup:
<persistence version = "2.0" xmlns = ... defined a jta-data-source for a JTA enabled persistence context named: testUnit
at ...

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... that become managed by the EntityManager javax.persistence.EntityManager JPA interface Interface used to interact with the persistence context. See JavaDoc Reference Page... em :
TypedQuery ...

I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is always empty when I get the entity out of the database again.
I've reproduced this problem in a simple variation of the Guestbook tutorial:
Guest class:
=====================
... ) {
ClassPathXmlApplicationContext context =
new ClassPathXmlApplicationContext (
... are available, unless you use a Container-managed Extended Persistence Context, as discussed in this forum thread .
In ...