ObjectDB Database Search

1-50 of 81 results

Step 3: Add a Context Listener Class

the EntityManagerFactory . To register a ServletContextListener : Open the [New Listener ] dialog box ... Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as ... the Finish button. Click Finish to create the new listener class. Now replace the content of the new

JPA Lifecycle Events

, the transaction is marked for rollback, and no more callback methods for that operation are invoked. Listeners ... , you can define them in a separate listener class: public class MyListener { @PrePersist void onPrePersist ... . The argument's type can be Object or a more specific entity type. The listener class must be stateless

How to Use a SF with extended Persistence Context?

Hey, I have a problem to use SF with an Extended Persistence Context Regarding to Transactions. The need for an extended persistence Context emerges for the need to create queries in advance ... : The GuestDao is a SF with an extended persistence context . the GuestServlet holds reference to a SL called

listening on a particular IP aside localhost

to listen in server mode to other connections from another machine where client is installed. I ... 8888 in configuration file but I wasn't able to add listening ip address such as 192.168.50.56 olyjosh Joshua Aroke ObjectDB will listen automatically to all requests to the server on which it is running

Configure ObjectDB in spring context

is to configure entire ObjectDB (optionally objectdb.conf too) in springs context .xml file so that I'd ... creating persistance.xml file. My previous database.xml (which is included in application- context .xml

Puzzler: Not getting cascades on read from Spring context

. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context . 

jakarta.persistence.EntityManager

: AutoCloseable Interface used to interact with the persistence context . An instance of EntityManager ... - { // do work in a persistence context ... }); In the Jakarta EE environment, a container-managed ... { entityManager.close(); } Each EntityManager instance is associated with a distinct persistence context

Detached JPA Entities

operations detach all managed entities by clearing the persistence context of an EntityManager : Calling ... a detached object back into a persistence context by using the merge method: Employee managedEmployee = em ... not exist in the persistence context , a new one is created. The method returns the managed entity

Server Configuration

to the server: The port attribute specifies the TCP port on which the server listens for new

Database Replication and Clustering

and listen for updates. The updates are then automatically applied to the slave database, keeping

Database is erased after deploying a new web application version

That may be the problem. The servlet context is available in specific listener and servlet methods ... the web-app from Tomcat's manager? Should I set some kind of listener ? Yotam Yotam Boaz You can set a listener for creating and destroying the EntityManagerFactory: https://www.objectdb.com/tutorial

jakarta.persistence.PersistenceUnitUtil

class if the given entity belonging to the persistence unit and to an open persistence context ... . PersistenceException - if the entity is not associated with an open persistence context or ... persistence context is an instance of the given entity class, or false otherwise. This method

jakarta.persistence.EntityListeners

Interfaces: Annotation Target: Type Specifies the callback listener classes to be used for an entity or ... entity listener classes may have callback methods annotated PrePersist , PreUpdate , PreRemove ... listener classes Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java

jakarta.persistence.FlushModeType

for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or ... of all entities in the persistence context which could potentially affect the result of the query ... , if COMMIT is set, the effect of updates made to entities in the persistence context on queries

Migration problem

.springframework.boot. context .properties.bind.DefaultValue; import org.springframework.data ... and listeners . Is there anything specific in this code that you want to check? support Support

jakarta.persistence.PostPersist

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostPersist Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.PostLoad

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PostLoad Implemented Interfaces: Annotation Target: Method 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

jakarta.persistence.ExcludeSuperclassListeners

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeSuperclassListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of superclass listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: Jakarta

jakarta.persistence.ExcludeDefaultListeners

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ExcludeDefaultListeners Implemented Interfaces: Annotation Target: Type Specifies that the invocation of default listeners is to be excluded for the entity class (or mapped superclass) and its subclasses. Since: Jakarta Persistence (JPA

problem with lazy loading - unittest project attached

ApplicationContext at org.springframework.test. context .TestContext.getApplicationContext(TestContext.java:308) ~[spring-test-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.test. context .support ... .java:109) ~[spring-test-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.test. context .support

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType.TRANSACTION Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.synchronization

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext SynchronizationType synchronization (Optional) Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined

jakarta.persistence.PersistenceUnitUtil.load(Object,String)

persistent attribute of an entity belonging to the persistence unit and to an open persistence context ... with an open persistence context or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.PersistenceUnitUtil.load(E,Attribute)

attribute of an entity belonging to the persistence unit and to an open persistence context ... persistence context or cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.PersistenceUnitUtil.load(Object)

and to an open persistence context . After this method returns, PersistenceUnitUtil.isLoaded must return true ... to the persistence unit. PersistenceException - if the entity is not associated with an open persistence context

jakarta.persistence.JoinColumn

) The name of the foreign key column. The table in which this column is found depends on the context

jakarta.persistence.MapKeyColumn

) The name of the map key column. The table in which it is found depends upon the context . If the map key

jakarta.persistence.MapKeyJoinColumn

upon the context . If the join is for a map key for an element collection, the foreign key column is in

jakarta.persistence.MappedSuperclass

are interpreted in the context of each entity class which inherits the mapped superclass

jakarta.persistence.EntityNotFoundException

and the persistence context has been joined to it, will be marked for rollback. See Also: EntityManager

jakarta.persistence.EntityExistsException

, if one is active and the persistence context has been joined to it, will be marked for rollback

Spring Data JPA - PersistenceException thrown

. context .annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:461) at org.springframework. context .annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:435) at org.springframework. context .annotation

jakarta.persistence.PersistenceContext.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context ; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnit.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String name (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context ; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

other than NONE has been set and there is no transaction or the persistence context has not been joined

jakarta.persistence.TypedQuery.getSingleResult()

and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getSingleResultOrNull()

and there is no transaction or the persistence context has not been joined to the transaction. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.TypedQuery.getResultList()

- if a lock mode other than NONE has been set and there is no transaction or the persistence context has not

jakarta.persistence.StoredProcedureQuery.executeUpdate()

back. TransactionRequiredException - if there is no transaction or the persistence context has not been joined

Cannot initialize db after inserting a java.util.List

) at org.mortbay.jetty.servlet. Context .startContext( Context .java:136) at org.mortbay.jetty.webapp ... ) at org.mortbay.jetty.servlet. Context .startContext( Context .java:136) at org.mortbay.jetty.webapp

UTF Error

(RenderKitUtils.java:1272) at com.sun.faces. context .ExceptionHandlerImpl.throwIt(ExceptionHandlerImpl.java:255) at com.sun.faces. context .ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:119) at javax.faces. context .ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:93) at com.sun.faces

package not found running ObjectDB under OSGi

the following way :  @Override     public void start(BundleContext context ) throws Exception {         super.start( context );                 ClassLoader classLoader =   context .getBundle

JSON serialization and __odbHidden members

{ @SuppressWarnings("unused") @ Context private UriInfo context ; @ Context HttpServletRequest request; @Inject private

UserException - Object User#2 belongs to another EntityManager

.AbstractOwbBean.create(AbstractOwbBean.java:182) at org.apache.webbeans. context .creational.BeanInstanceBag.create(BeanInstanceBag.java:81) at org.apache.webbeans. context .AbstractContext.getInstance(AbstractContext.java:167) at org.apache.webbeans. context .AbstractContext.get(AbstractContext.java:132) at org

connection pooling

specifies a TPC port on which the server is listening for new connections. Usually the default port 6136

Sync ObjectDB and MySQL

Is there a listener or program that can be used to sync across data from/to MySQL and ObjectDB so that I can use ObjectDB for development and then just make sure MySQL always has the same data? ThreaT Ashton Hogan There are plans to implement such a tool. You may subscribe to this feature request

Cast exception?

cannot be cast to database.entity.Player, Listener : { Ext: TestServer, Type: JAVA, Lev: ZONE, { Zone

Soft Reference Object Cache Recommendation

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

Server connection management

to listen to client requests. When the connection is closed on the client side (including on client

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

property or listener fires and causes an error while ObjectDB is loading the data - clearly my fault not