ObjectDB Database Search
1-48 of 48 resultsjakarta.persistence.EntityManagerFactory Jakarta Persistence (JPA) Interface jakarta.persistence. EntityManagerFactory Super Interfaces ... . An EntityManagerFactory with a lifecycle managed by the application may be created using the static operations ... , there is exactly one EntityManagerFactory for each persistence unit: // create a factory at initialization time | |
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 | |
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 | |
Setting and Tuning of JPA Queries: For an EntityManagerFactory , use the createEntityManagerFactory method: Map properties = new HashMap(); properties.put("jakarta.persistence.query.timeout", 4000); EntityManagerFactory emf = Persistence | |
JPA Named Queries Annotations. Retrieve it by result type from EntityManagerFactory .getNamedQueries , and use it to get a TypedQuery instance via EntityManager.createQuery . | |
jakarta.persistence.EntityManager must be obtained from an EntityManagerFactory , and is only able to manage persistence of entities belonging ... via a call to EntityManagerFactory .createEntityManager . The EntityManager must be explicitly closed ... , and is thus considered quite error-prone. It is much safer to use the methods EntityManagerFactory .runInTransaction | |
jakarta.persistence.EntityGraph.createEntityGraph(String) EntityManager.getEntityGraph(String) EntityManagerFactory ... descriptor element, or added by means of the EntityManagerFactory .addNamedEntityGraph method | |
Step 4: Add a Servlet Class, IOException { // Obtain a database connection: EntityManagerFactory emf = ( EntityManagerFactory ... ); } } GuestServlet performs the following operations on every http request: The EntityManagerFactory | |
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 | |
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 | |
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 | |
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 =   | |
CriteriaQuery .where() for multiple conditions(String name, String surname, ServletContext servletContext) { EntityManagerFactory emf = ( EntityManagerFactory ) servletContext.getAttribute("emf"); EntityManager em = emf.createEntityManager(); Person | |
Online backup problem the backup. support Support This is the code I used in my servlet : EntityManagerFactory emf = null;   ... - with the same result. EntityManagerFactory emf = Persistence.createEntityManagerFactory | |
Bug: ClassCastException by retrieval; import javax.persistence. EntityManagerFactory ; import javax.persistence.EntityTransaction; import javax ... ; */ public static void main(String[] args) { EntityManagerFactory emf = Persistence | |
Schema-Update: Rename superclass and remove one subclass: Generate Database public static void main(String[] args) { EntityManagerFactory emf = Persistence ... EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb:test.tmp"); EntityManager em = emf | |
javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test(); Thread.currentThread().setContextClassLoader( EntityManagerFactory .class.getClassLoader()); then it works ... in order to support e.g. Declarative Services and possibly provide EntityManagerFactory as | |
Optimistic locking: prevent version increment on entity collection attribute.Test public void test() throws IOException { EntityManagerFactory emf = Persistence ... document; } } @org.junit.Test public void test() throws IOException { EntityManagerFactory emf | |
Performance and memory usage of queries; import javax.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import ... ; public static void main(String[] args) { EntityManagerFactory emf = Persistence   | |
Attempt to begin a new transaction when a transaction is active The code I have a RecordDao stateless java bean : @Stateless public class RecordDao { private EntityManagerFactory emf; private EntityManager em; public RecordDao() { } @PostConstruct public ... the EntityManagerFactory and the EntityManager explicitly, but let the application server | |
persisting object with long[][] arrays of array) { EntityManagerFactory EMF = Persistence ... ; EntityManagerFactory EMF = Persistence.createEntityManagerFactory | |
connection pooling THUFIR THUFIR Every EntityManagerFactory instance manages a pool of connections and reuses ... with EntityManagerFactory (which manages the connection pool) and EntityManager (which represents | |
Problem with distinct select, order by and equivalent alias/attribute path. EntityManagerFactory ; import javax.persistence.Persistence; /** * * @author Benjamin Klink, SOLVIT GmbH */ public ... static void main(String[] args) { EntityManagerFactory emf | |
EntityManager refresh problem javax.persistence. EntityManagerFactory ; import javax.persistence.Persistence; import javax ... ; odbFile.delete(); EntityManagerFactory emf | |
Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers EntityManagerFactory " entityManagerFactory ", which is associated with the MySQL/Hibernate | |
General Performance Issues Illustrated with a Specific Method;dbUrl += ";drop"; EntityManagerFactory emf = Persistence ... static void store( EntityManagerFactory emf) throws Exception {   | |
Cast exception? EntityManagerFactory createEntityManagerFactory(String paramString, Map paramMap) /* */ { /* 73 */ EntityManagerFactory localEntityManagerFactory = null; /* 74 */ PersistenceProviderResolver | |
Database connection url# EntityManagerFactory support Support thanks, works for me. dmoshal David Moshal | |
Error using query with MAX() function Test { private final EntityManagerFactory emf; private final EntityManager em; public Test() { emf | |
Problem with Criteria Querys; { EntityManagerFactory emf =   | |
Embedded List void main(String[] args) { EntityManagerFactory emf = null | |
Is redirecting the log file possible the EntityManagerFactory (or is it the EntityManager?) where to store the log-file | |
javax.persistence.PersistenceException Hi I am trying to get a basic EclipseRCP project working with Objectdb. At the very first line in creating a View public void createPartControl(Composite parent) { EntityManagerFactory emf = Persistence | |
Problem with @UniqueConstraint" ; EntityManagerFactory emf = Persistence . createEntityManagerFactory ( PATH ); EntityManager em = emf | |
Index on map key static void main(String[] args) { EntityManagerFactory | |
ORDER BY problem, when String starts with language specific character; { EntityManagerFactory emf =   | |
Error with org.springframework.data.jpa.domain.AbstractPersistable; EntityManagerFactory emf = Persistence | |
java.sql.Time field off by 30 minutes; EntityManagerFactory emf | |
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 =   | |
"is not null" queries not working with index.persistence. EntityManagerFactory ; import javax.persistence.GeneratedValue; import javax.persistence.Id ... [] args) { EntityManagerFactory emf = Persistence | |
Strange Error with Criteria API and Sorting; import javax.persistence.EntityManager; import javax.persistence. EntityManagerFactory ; import javax ... (String[] args) { EntityManagerFactory emf = Persistence.createEntityManagerFactory | |
Unexpected exception (Error 990) com.objectdb.o.InternalException main(String[] args) { EntityManagerFactory emf =   ... ; EntityManagerFactory emf =   | |
Server crash - Mismatch client-server protocol prefix.fastmodel.fastplan.db. EntityManagerFactory .doFilter( EntityManagerFactory .java:202) at org.apache | |
ObjectDB 2.5.4 Added empty implementation of new JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods: createEntityManager , unwrap . Improved retrieving persistent string fields by using "".intern() for empty strings. Fixed a bug in queries on composed embedded primary key ( issue #1301 ). | |
Can't open replicated database has been deliberately removed): EntityManagerFactory emf = Persistence.createEntityManagerFactory | |
NullPointer when accessing persistent field; EntityManagerFactory emf =   | |
ObjectDB 2.8.9_07 Improved the error message on exception during commit, reported in issue #2882 . Improved automatic schema evolution of enum fields. Fixed A NullPointException when using EntityManagerFactory with different class loaders. Fixed a missing call to @PostUpdate when object change is detached by  |