-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Could not compile the mapping document: Programs.hbm.xml
PostPosted: Mon Jan 21, 2008 9:10 am 
Beginner
Beginner

Joined: Mon Jan 21, 2008 8:57 am
Posts: 20
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.4

Mapping documents:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="QuickStart.Programs, QuickStart" table="Programs">
<id name="ProgramId" column="ProgramId" type="int" length="4">
<generator class="assigned" />
</id>
<property name="CreationDate" type="DateTime"/>
<property name="Author" type="Varchar" length="50"/>
</class>
</hibernate-mapping>

Full stack trace of any exception that occurs:
QuickStart.exe!QuickStart.RegMgr.RegMgr() Line 18 C#
QuickStart.exe!QuickStart.Program.Main() Line 18 + 0x13 bytes C#

Name and version of the database you are using:MSSQL



Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

Hi,
I am new to hibernate and have been following this tutorial: http://www.theserverside.net/tt/article ... NHibernate
I get this error:
"Could not compile the mapping document: Programs.hbm.xml when trying to run my program. "

I hope some of you experts can help :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 2:37 am 
Beginner
Beginner

Joined: Mon Jan 21, 2008 8:57 am
Posts: 20
Can't anyone help?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.