Author: eric Date: Mon Dec 6 10:54:13 2010 New Revision: 1042569 URL: http://svn.apache.org/viewvc?rev=1042569&view=rev Log: Create EntityManager on JPAMailboxSessionMapperFactory creation to create the database tables on server startup (JAMES-1142)
Modified: james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java Modified: james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java URL: http://svn.apache.org/viewvc/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java?rev=1042569&r1=1042568&r2=1042569&view=diff ============================================================================== --- james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java (original) +++ james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java Mon Dec 6 10:54:13 2010 @@ -50,6 +50,7 @@ public class JPAMailboxSessionMapperFact this.entityManagerFactory = entityManagerFactory; this.delimiter = delimiter; this.uidGenerator = uidGenerator; + createEntityManager(); } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org