[ http://jira.andromda.org/browse/ANDVS-6?page=comments#action_13730 ]
Campbell Boucher-Burnet commented on ANDVS-6: --------------------------------------------- This is because, for some reason, the .hbm.xml files don't get marked as embedded resources when the addin does the resync after the generate. The "work-around" we're currently using is to manually delete the hbm.xml entries in the core csproj file and add an embedded resource element using the msbuild wild-card path feature: target\**\*.hbm.xml I've looked at the source for resynching and it "appears" to be setting all *.hbm.xml" files to project item kind" embedded resource and I have not had the time to get into detailed debugging mode (since the workaround solved the problem for us, for now). Sure would be nice to have a real fix in place, though. As far as the warnings go, just copy the hibernate xsds to you visual studio's ~\Xml\Schemas folder. > Empty DDT Generated > ------------------- > > Key: ANDVS-6 > URL: http://jira.andromda.org/browse/ANDVS-6 > Project: Android/VS > Type: Bug > Environment: Windows / VS.NET 2005 > Android/VS 1.5 > Reporter: Kevin Ortman > Assignee: Chris Micali > > Repro Steps > ----------------- > Start a new project w/ empty database. > Create Domain / Service / VO in MagicDraw. > Run Generate. (Entities / Service / VO source create OK) > Change connection string for nhibernate.config in SchemaExporter project. > Compile & run SchemaExporter with the "-e" option. > > Warnings > ----------------- > Compilation of SchemaExporter generates the following warnings: > Could not find schema information for the element > 'urn:nhibernate-configuration-2.0:hibernate-configuration'. > C:\Source\Demo\Northwinds.TimeTracker\Northwinds.TimeTracker.SchemaExport\nhibernate.config > 2 2 Northwinds.TimeTracker.SchemaExport > Could not find schema information for the element > 'urn:nhibernate-configuration-2.0:session-factory'. > C:\Source\Demo\Northwinds.TimeTracker\Northwinds.TimeTracker.SchemaExport\nhibernate.config > 3 6 Northwinds.TimeTracker.SchemaExport > ... etc. > Results > ----------------- > 1. SchemaExporter reports success. > 2. Generated schema-create.sql / schema-drop.sql files are empty. > 3. Modifications not made to SQL server. > Additional Info > ----------------- > I zipped the soulution directory which includes all logs, XMI files, and > source (it is about 3MB) > Please let me know if you would like me to mail it to you. -- 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV