ObjectDB Database Search

51-100 of 200 results

EntityManagerFactory objects being locked during EntityManager creation

wherein the EntityManagerFactory objects are being locked during EntityManager object creation.  Please refer ... to understand any underlying EntityManagerFactory locking mechanism to get deeper insight into ... with ObjectDB wherein the EntityManagerFactory objects are being locked during EntityManager object

Memory Leak in EntityManagerFactory ?

don't understand. 1. the server is running in embedded mode 2. the static EntityManagerFactory (m ... and static EntityManagerFactory Object (i.e. m_manager_factory ) as you can see in the screenshot ... is, that there are 248 com.objectdb.jdo.PMImpl Objects left, and the root gc is as well the EntityManagerFactory

Objectdb EntityManagerFactory problem

gupta Your question is unclear. You can close each EntityManagerFactory by using the close method. By the way, creating an  EntityManagerFactory is relatively slow. It is usually better to use one  EntityManagerFactory per application, with multiple  EntityManager instances for multiple database connections. support Support

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

void main(String[] args) {   EntityManagerFactory emf = null;   EntityManager em = null ... to the slave database (10,001) and get results, just before EntityManagerFactory switches ... also noticed, if EntityManagerFactory is created while the master (10,000) is already down, we fail

High memory consumption even after close() of EntityManagerFactory

could not be released. Not even after the EntityManagerFactory closed. We created a small test ... will automatically be released (if the pool is not disabled) on EntityManagerFactory close.   support Support ... ) on EntityManagerFactory close. However, there are other structures that should be released

Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2

: Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o ... a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.OMF.al

jakarta.persistence.EntityGraph

) EntityManager::createEntityGraph(String) EntityManager::getEntityGraph(String) EntityManagerFactory ... , XML descriptor element, or added by means of the EntityManagerFactory .addNamedEntityGraph method

jakarta.persistence.SchemaManager

persistence unit. Properties are inherited from the EntityManagerFactory , that is, they may be specified via persistence.xml or Persistence.createEntityManagerFactory . See Also: EntityManagerFactory

jakarta.persistence.EntityManager.getEntityManagerFactory()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager EntityManagerFactory getEntityManagerFactory() The entity manager factory which created this entity manager. Returns: the EntityManagerFactory . Throws: IllegalStateException - if the entity manager has been closed. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Persistence.createEntityManagerFactory(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    String persistenceUnitName ) Create and return an EntityManagerFactory for the named persistence unit. Parameters: persistenceUnitName - the name of the persistence

jakarta.persistence.Persistence.createEntityManagerFactory(String,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    String persistenceUnitName ,    Map properties ) Create and return an EntityManagerFactory for the named persistence unit, using the given properties

jakarta.persistence.Persistence.createEntityManagerFactory(PersistenceConfiguration)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory (    PersistenceConfiguration configuration ) Create and return an EntityManagerFactory for the named persistence unit, using the given properties. Parameters

jakarta.persistence.PersistenceConfiguration.createEntityManagerFactory()

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration EntityManagerFactory createEntityManagerFactory() Create a new EntityManagerFactory based on this configuration. Throws: PersistenceException - if required configuration is missing or if the factory could not be created. Since: Jakarta Persistence (JPA) 1.0

Database is erased after deploying a new web application version

? When should I use the close method of  EntityManagerFactory and EntityManager? As long as ... the close method of  EntityManagerFactory and EntityManager? You can close the  EntityManagerFactory when the web application is closed (see this example ). Usually  EntityManager

Persist error @ManyToMany how to define correct entities relationships

.persistence. EntityManagerFactory ; import javax.persistence.Id; import javax.persistence.ManyToMany; import ... t = new Test(); t.test(); } public static class Test{ EntityManagerFactory emf; EntityManager em ... javax.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax

Multi-tenant capability with hierarchies

here . You will have to configure the EntityManagerFactory creation to accept a parameter, if you want ... the entityManagerFactory bean which I don't use. public EntityManager getEntityManger () { String tenantId = ThreadContext ... to create the entityManagerFactory bean for startup or else I am getting an error "Caused by: org

jakarta.persistence.PersistenceUnit

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PersistenceUnit Implemented Interfaces: Annotation Target: Type, Method, Field Expresses a dependency on an EntityManagerFactory and its associated persistence unit. Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name

Cannot save or update entity on Spring App

( entityManagerFactory ().getNativeEntityManagerFactory()); transactionManager.afterPropertiesSet ... LocalContainerEntityManagerFactoryBean entityManagerFactory () throws ClassNotFoundException ... { // Injected database connection: @PersistenceUnit(unitName="pu") EntityManagerFactory

Configure ObjectDB in spring context

be able to inject EntityManagerFactory to my beans. Could you help me on this? vachagan Vachagan ... (" entityManagerFactory "); } @Bean public JpaTransactionManager transactionManager() throws ... .setEntityManagerFactory( entityManagerFactory ()); return transactionManager; } @Bean public

multi EntityManager with Spring Boot, but 'Too many persistable types (>10)

LocalContainerEntityManagerFactoryBean entityManagerFactory ( @Qualifier("dataSource") DataSource ... ") LocalContainerEntityManagerFactoryBean entityManagerFactory ) { JpaTransactionManager transactionManager = new JpaTransactionManager(); transactionManager.setEntityManagerFactory( entityManagerFactory .getObject()); return

@Unique member combination not working

) {         EntityManagerFactory emf = ( EntityManagerFactory ... .persistence.*; public final class T1522 {     static EntityManagerFactory emf =   ... have updated my code to just use a static EntityManagerFactory so I don't think

Filename.odb$ Persisting Issue

Jared Hinze This may happen if the EntityManagerFactory (or PersistenceManagerFactory if you use JDO ... this is the only EntityManagerFactory instance in your application verify that emf.close is indeed reached and executed (e.g ... simple as I can make it. public class Main extends Application { private static EntityManagerFactory

Internal exception when updating date filed (TemporalType.DATE)

GENERATE_PERSONS_COUNT = 1000;         private EntityManagerFactory entityManagerFactory ;         private EntityManager entityManager ... ;           entityManagerFactory = Persistence

openejb jpa jaas module

.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence ... Subject subject; private CallbackHandler callbackHandler; private EntityManagerFactory entityManagerFactory ; private EntityManager entityManager; protected Map sharedState = new HashMap (); private

ObjectDB License Error I got

.EnableTransactionManagement; import javax.persistence. EntityManagerFactory ; import java.util.Properties ... ", // your Spring Data JPA repos entityManagerFactoryRef = " entityManagerFactory ", transactionManagerRef = "transactionManager" ) public class ObjectDbConfig { @Bean(name = " entityManagerFactory ") public

Null returned by Persistence.createEntityManagerFactory

EntityManagerFactory emf;        private EntityManager em;        ... EntityManagerFactory emf;       private EntityManager em;       public ... EntityManagerFactory createEntityManagerFactory(String persistenceUnitName) { return createEntityManagerFactory

How force always recreate database on redeployment.

Support Thanks for feedback, I have read the provided links. From  EntityManagerFactory ... ) the drop parameter has to be specified:   EntityManagerFactory emf =      ... EntityManagerFactory from EntityManager.getEntityManagerFactory, but by then it is constructed and I can't

Remove an entity which attributes were changed - OptimisticLockException

one plugin or several plugins seems to be using one or more EntityManagerFactory / EntityManager ... that the same EntityManager (not just the same  EntityManagerFactory ) is used by ... void main(String[] args) {         EntityManagerFactory emf =  

Weird behaviour with enhanced classes and embedded entities

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.FetchType; import javax ... ;   EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("objectdbsscce.odb");     entityManager = entityManagerFactory .createEntityManager

Empty temporary dat files in the temp folder

to which we continuously have a connection (open EntityManagerFactory ). For each user action we create an EntityManager ... . EntityManagerFactory ; import javax.persistence.FlushModeType; import javax.persistence.Persistence ... static void createDB(String db) {   EntityManagerFactory emf = Persistence

jakarta.persistence.EntityManager.getCriteriaBuilder()

has been closed. See Also: EntityManagerFactory ::getCriteriaBuilder() Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.EntityManager.createQuery(TypedQueryReference)

if the query result is found to not be assignable to the specified type. See Also: EntityManagerFactory

jakarta.persistence.EntityGraph.getName()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityGraph String getName() Return the name of a named EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor element, or added by means of the EntityManagerFactory .addNamedEntityGraph method

ObjectDB CRUD Examples

Would this be correct?     public List read() { EntityManagerFactory emf ... () { EntityManagerFactory emf = Persistence.createEntityManagerFactory(       ... and see if it works. It would be more efficient to avoid creating and closing EntityManagerFactory instances

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

to obtain a connection from a closed EntityManagerFactory at com.objectdb.o._PersistenceException.b ... a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.OMF ... : Attempt to obtain a connection from a closed EntityManagerFactory at com.objectdb.o

Unable to persist TreeMap

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.LockModeType; import ... ;       EntityManagerFactory emf = Persistence.createEntityManagerFactory ... javax.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax

Schema Update: class hierarchy change

. EntityManagerFactory ; import javax.persistence.Persistence; public final class Test { public static void main(String[] args) {   System.out.println("start");   EntityManagerFactory emf = Persistence   ... .EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.Persistence; public

Left join fetch behaviour doesn't retrieve children?

. EntityManagerFactory ; import javax.persistence.Id; import javax.persistence.ManyToMany; import javax ... ;      EntityManagerFactory emf = Persistence.createEntityManagerFactory ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop");  

Feature Request for database.obj$ file

when everything is done after closing the database? Closing the EntityManagerFactory should complete ... scenarios in which after ordinary  close (of the EntityManagerFactory , not just ... after flush that is not closed). It is a good practice to use a long-lived EntityManagerFactory

client server mod of communication

with server, in client server mode.    1) EntityManagerFactory emf = Persistence ... ) EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb://localhost:6137 ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:testmemory.mem");  

ODB IndexActivation NullPointerException

and closing the creation of EntityManagerFactory or of EntityManager? Is it possible to ask if the ODB ... EmbeddedSystems We can add the following code block after creating the EntityManagerFactory . this. entityManagerFactory = createEntityManagerFactory(....); //trigger the ODB IndexActivation. It failed

mapping file is not being loaded

with the Persistence api: EntityManagerFactory emf = Persistence.createEntitManagerFactory("project.odb"); //this set ... ; This simple program: import javax.persistence.Entity; import javax.persistence. EntityManagerFactory ... (String[] args) {         EntityManagerFactory emf =   

Memory leak

when the user logs out, as well as EntityManagerFactory . We use em.clear() after every commit ... The heap dump indicates that 9 EntityManagerFactory instances have been created and have not been closed, and ObjectDB is very sensitive for closing every opened EntityManagerFactory . Please try build

ObjectDB within a resource adapter module and Java EE Connector Architecture

an EntityManagerFactory . But when using ObjectDB you can either define a standard persistence unit in ... :' EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/points.odb"); But if you are not using an explicit EntityManagerFactory it is not clear to me how to "inject" easily specs

Connect to objectdb database

EntityManagerFactory   EntityManagerFactory emf = Persistence . createEntityManagerFactory ( "objectdb-unit ... : EntityManagerFactory emf = Persistence . createEntityManagerFactory (     

Unexpected Exception during commit

. EntityManagerFactory .doFilter( EntityManagerFactory .java:158) at org.apache.catalina.core ... .persistence. EntityManagerFactory emf =         Persistence ... .fastmodel.fastplan.db. EntityManagerFactory .contextInitialized( EntityManagerFactory .java:55) at org.apache

Issues with JDO Casting & Full Qualified Names

.persistence. EntityManagerFactory ; import javax.persistence.Persistence; public final class F328 { public static void main(String[] args) {   EntityManagerFactory emf = Persistence ... ; import javax.persistence. EntityManagerFactory ; import javax.persistence.Persistence; public final

combined index not used

(String[] args) throws Exception { EntityManagerFactory emf = Persistence.createEntityManagerFactory ... ;            entityManager = entityManagerFactory .createEntityManager ... .no-schema-upgrade", "true"); EntityManagerFactory emf = Persistence.createEntityManagerFactory("D:\\odb

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

.EntityManager; import javax.persistence. EntityManagerFactory ; import javax.persistence.FetchType; import ... ; EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop");   ... ; EntityManagerFactory emf =            

Memory leak in com.objectdb.o.CST

; Thanks! Trianglehead Json Error You have 168 EntityManagerFactory instances. Do you access 168 ... one EntityManagerFactory instance, use it for creating multiple EntityManager instances, and remember to close each EntityManagerFactory and EntityManager instance at the end of use. support Support Hi I think