I'm playing with Hibernate a little bit. I created a "Group" class and a XML schema tied to it. Unfortunately when I try to export that schema, my .NET complains about a syntax error. I'm pretty sure my schema is malformed, but is there any technique to help troubleshooting ?
My XML schema looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="Folke"
namespace="Folke.Code.Domain">
<class name="Group">
<id name="Id">
<generator class="native"></generator>
</id>
<property name="SiteId" />
<property name="Name" index="GroupName"/>
</class>
</hibernate-mapping>
ASP.NET complains that there's a syntax error here:
new SchemaExport(HibernateModule.CurrentConfiguration).Execute(false, true, false, false);
The syntax error being "near Group" I'm pretty sure the problem is in the Group schema, but, again, I have no idea where to look to get a bit more details.