ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh

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

@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

Filename.odb$ Persisting Issue

Jared Hinze This may happen if the EntityManagerFactory (or PersistenceManagerFactory if you use JDO ... If emf this is the only EntityManagerFactory instance in your application verify that emf.close ... Application { private static EntityManagerFactory emf = Persistence.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

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

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

Remove an entity which attributes were changed - OptimisticLockException

or several plugins seems to be using one or more EntityManagerFactory / EntityManager instances, i ... EntityManager (not just the same EntityManagerFactory) is used by the different plugins ... ) {         EntityManagerFactory emf =             Persistence.createEntityManagerFactory

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

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

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

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