Joined: Wed Apr 11, 2007 2:39 pm Posts: 6
|
Hibernate version:
1.2
Mapping documents:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Player" table="player">
<!-- A 32 hex character is our surrogate key. It's automatically
generated by NHibernate with the UUID pattern. -->
<id name="Id">
<column name="id" sql-type="char(32)" not-null="true"/>
<generator class="uuid.hex" />
</id>
<property name="Name">
<column name="name" length="16" not-null="true" />
</property>
<property name="Level"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
tx = i.BeginTransaction();
Player p = new Player();
p.Name = "Bob";
p.Level = 34;
i.Save(p);
tx.Commit();
The error I am getting is:
"Could not compile the mapping document Jinx.Player.hbm.xml"
I am wondering if there's a way to make it spit out a more detailed explanation as to where the error is coming from. Ive seen posts on googles with similar MappingExceptions, except they received additional details on the cause of the error.
Can anyone help me in tracking this down? Ive spent quite some time trying to get things working. =(
|
|