Internal Website Search

71-80 of 200 resultsRefresh

How force always recreate database on redeployment.

="/java/jpa/persistence/overview#entitymanagerfactory">manual and From entitymanagerfactory">EntityManagerFactory: Connection URL Parameters To obtain a connection

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 ... name="entityManagerFactory" ref="entityManagerFactory" /> </bean> <tx:annotation ... ; <property name="entityManagerFactory" ref="emf"/>   </bean>   <!-- Use

Performance in large transactions

.EntityManagerFactory; import javax.persistence.FlushModeType; import javax.persistence.OneToMany; import ... () {   EntityManagerFactory emf = Persistence     .createEntityManagerFactory("objectdb ... test_ManyTransactions() {   EntityManagerFactory emf = Persistence    

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

LocalContainerEntityManagerFactoryBean entityManagerFactory( @Qualifier("dataSource ... entityManagerFactory) { JpaTransactionManager transactionManager = new JpaTransactionManager(); transactionManager.setEntityManagerFactory(entityManagerFactory.getObject()); return

@Unique member combination not working

servletContext) {         EntityManagerFactory emf = (EntityManagerFactory ... ;   static EntityManagerFactory emf =         ... to just use a static EntityManagerFactory so I don't think it should be too much of a problem.

Filename.odb$ Persisting Issue

="code">EntityManagerFactory (or PersistenceManagerFactory if you use JDO) is not closed ... ">emf this is the only EntityManagerFactory instance in ... "> public class Main extends Application { private static EntityManagerFactory emf = Persistence

openejb jpa jaas module

.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence ... EntityManagerFactory entityManagerFactory; private EntityManager entityManager ... entityManagerFactory = Persistence.createEntityManagerFactory((String) options.get("url

Null returned by Persistence.createEntityManagerFactory

TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf;     ... TaskDaoODBImpl implements TaskDao {     private EntityManagerFactory emf;   ... class="code">null: public static EntityManagerFactory

Remove an entity which attributes were changed - OptimisticLockException

">EntityManagerFactory / EntityManager instances, i.e ... ="code">EntityManager (not just the same EntityManagerFactoryEntityManagerFactory emf =             Persistence

Threaded Test - Failed to commit transaction: Unexpected internal exception

;      EntityManagerFactory emf = Persistence.createEntityManagerFactory ... ;     private EntityManagerFactory _emf;        ... name, EntityManagerFactory emf, int num) {