ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
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

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

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
11

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
11

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
10

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

" /> </bean> <bean id="entityManagerFactory"   class="org.springframework.orm.jpa ... ="org.springframework.orm.jpa.JpaTransactionManager">   <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> <tx:annotation-driven transaction-manager="txManager" /> <bean id
10

Performance in large transactions

.EntityManagerFactory; import javax.persistence.FlushModeType; import javax.persistence.OneToMany; import javax ... () {   EntityManagerFactory emf = Persistence     .createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop ... test_ManyTransactions() {   EntityManagerFactory emf = Persistence     .createEntityManagerFactory
2

javax.persistence.spi.PersistenceUnitTransactionType

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

setTransactionType(name)

Method javax.jdo.PersistenceManagerFactory void setTransactionType( String name ) Sets the TransactionType for this PersistenceManagerFactory. Permitted values are "JTA" and "RESOURCE_LOCAL". This has the same 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