ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh

@Unique member combination not working

, ServletContext servletContext) {         EntityManagerFactory emf = (EntityManagerFactory) servletContext ... {     static EntityManagerFactory emf =         Persistence.createEntityManagerFactory ... have updated my code to just use a static EntityManagerFactory so I don't think

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

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

= "entityManagerFactory1") public LocalContainerEntityManagerFactoryBean entityManagerFactory ... ") LocalContainerEntityManagerFactoryBean entityManagerFactory) { JpaTransactionManager transactionManager = new JpaTransactionManager(); transactionManager.setEntityManagerFactory(entityManagerFactory.getObject

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

Weird behaviour with enhanced classes and embedded entities

.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... ("objectdbsscce.*");         // open db     EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("objectdbsscce.odb");     entityManager = entityManagerFactory

Null returned by Persistence.createEntityManagerFactory

class TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf;        private ... call: public class TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf ... but it never returns null: public static EntityManagerFactory createEntityManagerFactory

openejb jpa jaas module

javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... callbackHandler; private EntityManagerFactory entityManagerFactory; private ... :6136/myDbFile.odb entityManagerFactory = Persistence.createEntityManagerFactory((String

How force always recreate database on redeployment.

Thanks for feedback, I have read the provided links. From EntityManagerFactory: Connection URL Parameters ... has to be specified: EntityManagerFactory emf = Persistence.createEntityManagerFactory ... . I can then obtain the related EntityManagerFactory from EntityManager.getEntityManagerFactory

Unexpected Exception during commit

.fastmodel.fastplan.db.EntityManagerFactory.doFilter(EntityManagerFactory.java:158) at org.apache ... .EntityManagerFactory emf =         Persistence.createEntityManagerFactory(             "objectdb ... .EntityManagerFactory.contextInitialized(EntityManagerFactory.java:55) at org.apache

Threaded Test - Failed to commit transaction: Unexpected internal exception

void testMultiThreadedEntryPipe() {         EntityManagerFactory emf = Persistence ... _name;         private EntityManagerFactory _emf;         private int _num;         public ObjectDbProducer(String name, EntityManagerFactory emf, int num) {             _name = 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