About activator

forum_thread

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: #1 2012-06-05 16:53 I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 ...

 
manual

UPDATE SET Queries in JPA/JPQL

Explains how to apply server side bulk update using a JPA/JPQL query. Existing entity objects can be updated, as explained in chapter 2 , by: Retrieving the entity objects into an EntityManager . Updating the relevant entity object fields within an active transaction. ...

 
issue

com.objectdb.o.InternalException: null

After an error in a @PrePersist method in an Entity class, the database stopped working. Fortunately this was in development, but still worrying! The Entity class Bug Version: Priority: Normal Status: Active Replies: 5 Type:  Bug ...

 
forum_thread

How to create a Unique constraint?

Hi, I'm trying to create a unique constraint. Here is a simple example: @Entity public class Account { @Id @GeneratedValue private long id; @Index(unique="true") private String name; } The code runs and my Account objects are persisted. But no exception is thrown if name is the same. What do I need to do to have a Unique constraint? Thanks, Carl   #1 2011-02-10 18:06 Hi, I'm trying to create a unique constraint. Here is a simple example: @ Entity publ ...

 
forum_thread

Not able to update records

Hi,   I am tring to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] javax.persistence.TransactionRequiredException Attempt to run update query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758) Following is the code i am executing   #1 2013-02-26 06:13 Hi,   I am tring to update the simple object by using Update query by i am getting following ...

 
api-jdo

close()

Close this PersistenceManagerFactory.(Method of javax.jdo.PersistenceManagerFactory)

 
manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database. New entity objects can be stored in the database either explicitly by invoking the persist persist(entity) EntityManager's method Make an instance managed and persistent. See JavaDoc Reference Page... method or ...

 
forum_thread

Entity Update - Is the documentation up to date?

I'm working on my first ObjectDB project, and I just went back and reviewed some of the documentation.  Turns out I've been doing two things that http://www.objectdb.com/java/jpa/persistence/update suggests should not work. First, I've been modifying managed entities from outside an active transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged automatically. #1 2012-05-23 05:26 I'm working on my first ObjectDB project, and I just went back and reviewed some of the documentation.  ...

 
release

2.5.1

Release date: 2013-05-30 Download (5.43 MB) Binary:  objectdb-2.5.1.zip You should start by following a  tutorial or reading the manual ...

 
manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA. JPA 2 supports both optimistic locking and pessimistic locking . Locking is essential to avoid update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking in ObjectDB (and in JPA) is always at the da ...