-->
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: persistent class <classname> not found
PostPosted: Tue Oct 25, 2005 2:45 am 
Beginner
Beginner

Joined: Tue Oct 25, 2005 2:44 am
Posts: 20
Location: Sydney, Australia
I am unable to get past the starting blocks with nhibernate and I need help please.

When I any of my own attempts I get the "persistent class <classname> not found" exception. I have used .net reflector against the assembly and my class and the hbm.xml files are there and the naming matches.

I thought I was doing something wrong, so I tried the examples. They wouldn't compile due to missing assemblyinfo.cs and .snk files. I fixed this but even the examples wouldn't work and gave me the same error.

I'm at a loss and really, really don't want to trace the full package to fix it. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 3:14 am 
Beginner
Beginner

Joined: Tue Oct 25, 2005 2:44 am
Posts: 20
Location: Sydney, Australia
Hmm, I worked out I have to add the assembly name onto the end of the class name, as in:

<class name="Organisation.SomeClass, OrganisationAssembly" table="SomeClass">

and not:

<class name="Organisation.SomeClass" table="SomeClass">

What baffles me is why the 1.0 examples don't do this. Do they work on other peoples machines or are they broken?

Cheers


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.