ObjectDB Database Search
51-100 of 200 resultsMemory 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 | |
InterfaceRef jakarta.persistence.EntityManager with the persistence context. An instance of EntityManager must be obtained from an EntityManagerFactory ... , and is thus considered quite error-prone. It is much safer to use the methods EntityManagerFactory .runInTransaction and EntityManagerFactory .callInTransaction . entityManagerFactory .runInTransaction | |
InterfaceRef jakarta.persistence.spi.PersistenceProvider to create an EntityManagerFactory and/or to cause schema generation to occur. Since: JPA 1.0 Public Methods EntityManagerFactory createContainerEntityManagerFactory ( PersistenceUnitInfo info, Map map) Called by the container when an EntityManagerFactory is to be created. Parameters | |
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 | |
ClassRef jakarta.persistence.Persistence used to obtain an EntityManagerFactory in Java SE environments. It may also be used to cause schema ... . Public Static Methods EntityManagerFactory createEntityManagerFactory ( PersistenceConfiguration configuration) Create and return an EntityManagerFactory for the named persistence unit, using | |
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 | |
ClassRef jakarta.persistence.PersistenceConfiguration of an EntityManagerFactory . The configuration options available via this API reflect the similarly-named ... , even when this API is used within the Jakarta EE environment. If injection of the EntityManagerFactory is required, a CDI Producer may be used to make the EntityManagerFactory available as a CDI managed | |
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 | |
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 | |
InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo the persistence provider when creating an EntityManagerFactory . Since: JPA 1.0 Public Methods void ... created by the EntityManagerFactory . The transaction type corresponds to the transaction-type ... the EntityManagerFactory Note: This method will change its return type to {@link jakarta.persistence | |
PersistenceProvider.createEntityManagerFactory(emName,map) - JPA Method JPA Method in jakarta.persistence.spi.PersistenceProvider EntityManagerFactory ... class when an EntityManagerFactory is to be created. Parameters: emName - the name of the persistence ... are specified). Return: EntityManagerFactory for the persistence unit, or null if the provider is not | |
PersistenceProvider.createEntityManagerFactory(configuration) - JPA Method JPA Method in jakarta.persistence.spi.PersistenceProvider EntityManagerFactory ... when an EntityManagerFactory is to be created. Parameters: configuration - the configuration of the persistence unit Return: EntityManagerFactory for the persistence unit, or null if the provider is not | |
PersistenceProvider.createContainerEntityManagerFactory(info,map) - JPA Method JPA Method in jakarta.persistence.spi.PersistenceProvider EntityManagerFactory ... ) Called by the container when an EntityManagerFactory is to be created. Parameters: info - metadata ... "} . Return: {@link EntityManagerFactory } for the persistence unit specified by the metadata Since: JPA 1.0 | |
InterfaceRef jakarta.persistence.SchemaManager JPA Interface SchemaManager Allows programmatic plain, plain, plain, and plain for entities belonging to a certain persistence unit. Properties are inherited from the EntityManagerFactory , that is, they may be specified via persistence.xml or (String, Map) . See Also: EntityManagerFactory | |
Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method JPA Static Method in javax.persistence.Persistence EntityManagerFactory createEntityManagerFactory ( String persistenceUnitName, Map properties ) Create and return an EntityManagerFactory for the named persistence unit using the given properties. Parameters | |
PersistenceConfiguration.createEntityManagerFactory() - JPA Method 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: JPA 3.2 | |
Persistence.createEntityManagerFactory(persistenceUnitName) - JPA Static Method JPA Static 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 unit Return | |
Persistence.createEntityManagerFactory(configuration) - JPA Static Method JPA Static Method in jakarta.persistence.Persistence EntityManagerFactory createEntityManagerFactory ( PersistenceConfiguration configuration ) Create and return an EntityManagerFactory for the named persistence unit, using the given properties. Parameters: configuration | |
Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method JPA Static 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 | |
PersistenceUnitInfo.getTransactionType() - JPA Method JPA Method in jakarta.persistence.spi.PersistenceUnitInfo PersistenceUnitTransactionType getTransactionType () Returns the transaction type of the entity managers created by the EntityManagerFactory ... . Return: transaction type of the entity managers created by the EntityManagerFactory Note: This method | |
EntityManager.getEntityManagerFactory() - JPA Method JPA Method in jakarta.persistence.EntityManager EntityManagerFactory getEntityManagerFactory () The plain which created this entity manager. Return: the {@link EntityManagerFactory } Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0 | |
InterfaceRef jakarta.persistence.EntityGraph EntityManagerFactory .addNamedEntityGraph EntityManager.find Since: JPA 2.1 Public Methods ... descriptor element, or added by means of the EntityManagerFactory .addNamedEntityGraph method | |
AnnotationRef jakarta.persistence.PersistenceUnit JPA Annotation PersistenceUnit Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Expresses a dependency on an EntityManagerFactory and its associated persistence unit. Since: JPA 1.0 Public Annotation Attributes String name default "" (Optional) The name by which the entity manager | |
EntityManager.createQuery(reference) - JPA Method is found to not be assignable to the specified type See Also: EntityManagerFactory .getNamedQueries NamedQuery NamedNativeQuery Since: JPA 1.0 | |
EntityManager.getCriteriaBuilder() - JPA Method JPA Method in jakarta.persistence.EntityManager CriteriaBuilder getCriteriaBuilder () Obtain an instance of CriteriaBuilder which may be used to construct CriteriaQuery objects. Return: an instance of {@link CriteriaBuilder} Throws: IllegalStateException - if the entity manager has been closed See Also: EntityManagerFactory .getCriteriaBuilder () Since: JPA 2.0 | |
EntityGraph.getName() - JPA Method 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). Returns null if the EntityGraph is not a named EntityGraph . Since: JPA 2.1 | |
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 |