From: <leg...@at...> - 2003-08-08 06:14:19
|
Message: The following issue has been closed. Resolver: Gavin King Date: Fri, 8 Aug 2003 1:13 AM I implemented something similar to this, that does not require a dependency upon crossdb. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-43 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-43 Summary: Auto db build Type: Patch Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:27 AM Updated: Fri, 8 Aug 2003 1:13 AM Description: Auto db build small change in Configuation and new class. Turned on by the following property: hibernate.autobuilddb true Small change required in Configuration: replace buildSessionFactory with this one: public SessionFactory buildSessionFactory() throws HibernateException { secondPassCompile(); Environment.verifyProperties (properties); Properties copy = new Properties (); copy.putAll(properties); SessionFactoryImpl sessImpl = new SessionFactoryImpl(this, copy, interceptor); // build db if autobuild set String autobuilddb = (String) properties.get ("hibernate.autobuilddb"); if(autobuilddb != null && autobuilddb.equalsIgnoreCase("true")){ DbBuilder.autoBuild(this, sessImpl); } return sessImpl; } http://sourceforge.net/tracker/index.php?func=detail&aid=709940&group_id=40712&atid=428710 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |