-->
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: Erro message - No Persistors For
PostPosted: Wed Oct 05, 2005 10:40 am 
Newbie

Joined: Tue Oct 04, 2005 6:20 am
Posts: 9
I have a class that currently only holds a date taken from a table in a SQL database, the class and hbm.xml file are shown below:


Code:
Public Class MyClass

    Public Sub New()

    End Sub

    Private m_DueDate As Date
   
    Public ReadOnly Property DueDate() As Date
        Get
            Return Me.m_DueDate
        End Get
    End Property    'DueDate


    Private m_ID As Integer

End Class


Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
   <class name="MyAssembly.MyClass, MyAssembly" table="MY_TBL">   
   
      <id name="ID" column="MY_UNIQUE" type="Int32" unsaved-value="0">
         <generator class="assigned"/>
      </id>
   
      <property name="DueDate" column="MY_DUE_DATE" access="field.pascalcase-m-underscore"/>
      
   </class>

</hibernate-mapping>


When I try to call
Code:
Me.m_MadisunSession.CreateCriteria(GetType(MyAssembly.MyClass)).List

to populate an arraylist I get the following error message:

No Persistors for: MyAssembly.MyClass

What is it trying to tell me?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 05, 2005 11:39 am 
Newbie

Joined: Tue Oct 04, 2005 6:20 am
Posts: 9
Sorry for bothering everyone, it was my fault, I wasn't copying my config file to the bin folder.

:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:


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.