ObjectDB Database Search

1-44 of 44 results

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. Internal Callback Methods Internal callback ... defines all the supported callback methods with empty implementations: @Entity public static class

EnumConstRef jakarta.persistence.ValidationMode.CALLBACK

JPA Enum Constant in jakarta.persistence.ValidationMode CALLBACK The persistence provider must perform the lifecycle event validation. It is an error if there is no Bean Validation provider present in the environment. Since: JPA 2.0

JDO Internal Callbacks

All about JDO Internal Callbacks in Java/JPA database - explanations, examples, references, links and related information.

ObjectDB Object Database Features

callback methods and listener classes . JDO callback methods and listener classes. Primary Keys

JPA Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks : Java EE container annotations: Many

openejb jpa jaas module

.security.auth. callback .*; import javax.security.auth.login.LoginException; import javax.security.auth.spi ... authentication information from the user"); final Callback [] callbacks = new Callback [2]; callbacks [0] = new NameCallback(null); callbacks [1] = new PasswordCallback(null, false); try { callbackHandler

AnnotationRef jakarta.persistence.PrePersist

JPA Annotation PrePersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback ... class, a mapped superclass, or a callback listener class. A generated primary key value is available when this callback occurs only for UUID , TABLE , or SEQUENCE primary key generation. For IDENTITY

Best practice: Database update/migration of embedded databases in products

a JPA event callback to make the conversion. In V1.1 your class will include the following fields ... a PostLoad callback (if not null ) to name . Only name will be used by the application (except in the conversion callback method). Similarly, in v2.0, your class will include the following fields

Working with a cleared cache

well. carr.onstott Carr Onstott It is unclear from the stack trace which callback is invoked ... event callbacks . ObjectDB should produce better error messages, but if the same code works outside the callback method - the solution should be based on using it not in a callback method. support Support

AnnotationRef jakarta.persistence.EntityListeners

the callback listener classes to be used for an entity or mapped superclass. This annotation may be applied to an entity class or mapped superclass. The specified entity listener classes may have callback ... Annotation Attributes Class [] value default null The callback listener classes Since: JPA 1.0

AnnotationRef jakarta.persistence.PostPersist

JPA Annotation PostPersist Target: METHOD Implemented Interfaces: Annotation Specifies a callback ... class, a mapped superclass, or a callback listener class. Any generated primary key value is available when this callback occurs. Since: JPA 1.0 The JPA Lifecycle Events article explains how to use

turn off auto-serialization

; moreover that exception is raised before any preStore callback or listener so I could not check field structure and I'm unable to change for example instance of Class into their names in jdoPreStore() callback Tomasz ... ;  Yes, you are right, wrong config file and I waited for callback i embeded entity, my fault.   Tomasz Tomasz Wozniak

AnnotationRef jakarta.persistence.PostLoad

JPA Annotation PostLoad Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

AnnotationRef jakarta.persistence.PostUpdate

JPA Annotation PostUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

AnnotationRef jakarta.persistence.PostRemove

JPA Annotation PostRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

AnnotationRef jakarta.persistence.PreUpdate

JPA Annotation PreUpdate Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

AnnotationRef jakarta.persistence.PreRemove

JPA Annotation PreRemove Target: METHOD Implemented Interfaces: Annotation Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 The JPA Lifecycle Events

@Column length is not working.

a lifecycle event callback . support Support i think implementation of lifecycle event callback is expensive

auto generate timestamp

the timestamp in an ordinary Date / Timestamp field and update it in an event callback method ... future versions. You can, however, use the server time in the event callback by running a query (not very efficient but should work). support Support

AnnotationAttrRef jakarta.persistence.EntityListeners.value

JPA Annotation Attribute in jakarta.persistence.EntityListeners Class [] value default null The callback listener classes Since: JPA 1.0

EnumRef jakarta.persistence.ValidationMode

2.0 CALLBACK The persistence provider must perform the lifecycle event validation. It is an error

AnnotationRef jakarta.persistence.Entity

fields and properties, an entity class may declare callback methods using PrePersist , PreUpdate

LifeCycle Event with Embeddable classes

callback for the containing entity and use it to handle embedded objects in the entity object. support Support

Does ObjectDB create one instance of each entity class on (web app) load ?

. (I've also checked am not loading any entities using JPA callbacks .) If I take a heap dump

Migration problem

it should work, although ObjectDB ignores most mapping annotations. ObjectDB supports callbacks

Soft Reference Object Cache Recommendation

; Perhaps setting ObjectDB to use weak references but then using persistent object callback /listeners to track

newbie - lots of exeptions

exception in afterCompletion() callback : [ObjectDB 2.4.4_06] javax.persistence.PersistenceException Failed

How to package orm.xml when using EJB in WAR?

: Caught exception in beforeCompletion() callback : [ObjectDB 2.2.9_08] javax.persistence

How to define Default Entity Listeners without persistence.xml and orm.xml

. mgangat Mahmoud If you use JPA you will need either listeners or callback methods as explained in

Auto Date for Creation and Update

@PostPersist and other callbacks as well.  it would be MUCH more simple

Automatic schema evolution causes ArrayOutOfBoundsException

, and write code to convert from List to List , possibly in a PostLoad callback method . The second

Method Invocation On All Entities

some "doBeforeDie" method before the deletion. You may define a callback or listener for JPA

Show Sql/Jpql

listener or callback . support Support Build 2.4.7_01 adds simple text logging of query execution

Partial Indexing

. You can keep that partial field synchronized with the main field by using a callback method  (which will be annotated

Error 363 - Failed to read value of inverse relationship

log is as follows:   WARNING: DTX5014: Caught exception in beforeCompletion() callback

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

: Caught exception in beforeCompletion() callback : [ObjectDB 2.6.9_06] javax.persistence ... .run(Thread.java:745) Warning: DTX5015: Caught exception in afterCompletion() callback : [ObjectDB 2.6 ... afterCompletion() callback : [ObjectDB 2.6.9_06] javax.persistence.TransactionRequiredException

com.objectdb.o.InternalException: null

the database should not be corrupted because of an exception in a callback method. An exception in

Blocked by find

callback event rbccm.felix.framework.ApplicationException: Error flushing data container at rbccm

ObjectDB 2.1.1

Fixed an  Explorer bug in handling listeners and callbacks . Fixed a bug in using user/password url arguments multiple times. Fixed several bugs in query processing and running.

@PrePersist not working correctly

the event callback method. Notice, however, that using merge as a replacement of persist

InternalException - error reading field from "queue" database

I trying to use an objectdb database as a persitent queue but have started getting the following error on the receiver side: 2011-07-25 10:54:25,023 AdminServer- Callback -Instance-2/0 ERROR ServiceRunner - Error processing message. rbccm.felix.framework.ApplicationException: Error taking message

Object DB Explorer fails to open database

. Towfique Imam Thank you for this report. There was a problem in handling listeners and callback methods

ObjectDB 2.2.9

of a JOIN query . Fixed a recursive @PreUpdate call bug (when the callback updates the entity).