About persistence

tutorial

Java EE 6 Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in Eclipse - using GlassFish, ObjectDB and JPA.... have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is ...

 
api-jpa

JPA Annotations for Value Generation

Reference (JavaDoc) of JPA 2 value generation annotations, including @GeneratedValue, @SequenceGenerator and @TableGenerator.... strategy is specified: javax.persistence.GeneratedValue javax.persistence.GenerationType The @GeneratedValue annotation ...

 
forum_thread

Objectdb ignores not null annotations

I'd like to mark field of an entity not nullable so that when developer tries to persist such entity exception gets thrown... I've tried @Column(nullable = false) (i even tried @NotNull which is not JPA, anyway I've tried :) Please specify valid way to mark a field (might be of another Entity type or primitive) not nullable... Regards #1 2014-05-16 09:12 I'd like to mark field of an entity not nullable so that when developer tries to persist such entity exceptio ...

 
api-jdo

isDirty(pc)

Tests whether this object is dirty.(Method of javax.jdo.spi.StateManager)

 
forum_thread

"Rebuild Class Indexes" from the command line?

Hi, Is there a way to "Rebuild Class Indexes" from the command line? I have just added a new index and want to make sure the DBs with previously persisted entities have a BTree with all entities. http://www.objectdb.com/database/jdo/manual/chapter9 Thanks   #1 2015-01-14 00:18 Hi, Is there a way to "Rebuild Class Indexes" from the command line? I have just added a new inde ...

 
issue

NullPointer running multiple client against server

Hi, I'm running objectdb in server mode, config as it comes out of the box. In this case the database is being used as a queue with multiple seperate processes, each with multiple threads, writing messages. The message is split into a lightweight metadata message to allow fast searching and a more heavy weight data message. The put methods are shown below. The message is made up of an id, insert-time, priority and the payload is a large string. Bug Version: 2.2.7 Priority: Normal Status: Fixed Replies: 2 Type:  Bug ...

 
api-jdo

preDelete(event)

Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager.deletePersistent.(Method of javax.jdo.listener.DeleteLifecycleListener)

 
api-jdo

Constants.PMF_ATTRIBUTE_COPY_ON_ATTACH

The name of the persistence manager factory element's "copy-on-attach" attribute.(Static Field of javax.jdo.Constants)

 
forum_thread

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id).     #1 2012-06-01 07:35 Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't ...

 
api-jdo

Constants.PMF_ATTRIBUTE_NONTRANSACTIONAL_WRITE

The name of the persistence manager factory element's "nontransactional-write" attribute.(Static Field of javax.jdo.Constants)