ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
12

Connection is closed Caused by: java.io.EOFException

.*; public final class Test {     public static void main(String[] args) {         EntityManagerFactory ... ) {         EntityManagerFactory emf = Persistence.createEntityManagerFactory(             "objectdb ... was not closing the EntityManagerFactory. I have now added a method which I explicitly call after I
11

Persist error @ManyToMany how to define correct entities relationships

.EntityManagerFactory; import javax.persistence.Id; import javax.persistence.ManyToMany; import ... { EntityManagerFactory emf; EntityManager em; void test ... .persistence.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory
11

Database is erased after deploying a new web application version

of EntityManagerFactory and EntityManager? As long as the web-app is running, I have no intention of closing ... concurrently? > When should I use the close method of EntityManagerFactory and EntityManager? You can close the EntityManagerFactory when the web application is closed (see this example). Usually
11

Memory consumption of empty Strings

[] args) {     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("sscce.odb");     EntityManager entityManager = entityManagerFactory.createEntityManager ... ();     entityManagerFactory.close();     System.out.println("let's create a heap dump
11

Multi-tenant capability with hierarchies

here. You will have to configure the EntityManagerFactory creation to accept a parameter, if you want to open multiple ... management myself. Which figures because the @Transactional uses the entityManagerFactory bean which I don't ... ; } } I also still need to create the entityManagerFactory bean for startup or else I am getting
10

Configure ObjectDB in spring context

to inject EntityManagerFactory to my beans. Could you help me on this? vachagan Vachagan ... " value="admin"/> </bean> <bean id="entityManagerFactory" class="org.springframework.orm.jpa ... ("entityManagerFactory"); } @Bean public JpaTransactionManager transactionManager() throws
10

Cannot save or update entity on Spring App

(entityManagerFactory().getNativeEntityManagerFactory()); transactionManager.afterPropertiesSet ... public LocalContainerEntityManagerFactoryBean entityManagerFactory() throws ... : @PersistenceUnit(unitName="pu") EntityManagerFactory entityManagerFactory; // Stores a new guest
2

javax.persistence.spi.PersistenceUnitTransactionType

> Specifies whether entity managers created by the javax.persistence.EntityManagerFactory will be JTA or
2

javax.persistence.PersistenceUnit

javax.persistence Annotation PersistenceUnit Target: Classes and fields (including property get methods) Expresses a dependency on an EntityManagerFactory and its associated persistence unit. Since: JPA 1.0 String name (Optional) The name by which the entity manager factory is to be accessed in
0

javax.jdo.PersistenceManagerFactory

semantics as the same-named property in JSR-220 EntityManagerFactory. Parameters: name

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support