[ http://jira.andromda.org/browse/ANDVS-2?page=all ]
Mike Pagel updated ANDVS-2: --------------------------- Attachment: DbSupport.cs DbSupport.cs.patch > NHibernateSupport.RegenerateDatabase() fails if drop sql script exists > ---------------------------------------------------------------------- > > Key: ANDVS-2 > URL: http://jira.andromda.org/browse/ANDVS-2 > Project: Android/VS > Type: Bug > Environment: .NET, Android/VS, SchemaExport utility > Reporter: Mike Pagel > Assignee: Chris Micali > Attachments: DbSupport.cs, DbSupport.cs.patch > > Problem in short: Android/VS' SchemaExport is using NHibernateSupport. > Schemageneration works fine for the first time, but fails when done a second > time. Please see these posts for a detailed description: > http://galaxy.andromda.org/forum/viewtopic.php?t=3203 > http://galaxy.andromda.org/forum/viewtopic.php?t=3189 > This is an attempt to patch this problem. > What did I do: > ============== > Basically I reused to array approach already implemented for database > creation also in the drop case. I therefore refactored this functionality > into a separate method ExecuteSqlCommands(). > I also used File.ReadAll() and File.WriteAll() instead of the proprietary > implementations using a for loop. Note: the two functions are new in .NET > 2.0. Let me know whether this is a problem and I ubmit another patch without > this optimization. > For you convenience I attached two versions of the patch: (a) a unified > context patch file and (b) the actual file. > I was using revision 1.2 of DbSupport.cs. > Mike -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642