This error occur on reading records from database using n hibernate XML 
mapping. Exception occur when multiple user access application 
simultaneously. we are using linq query for accessing record.  Following is 
Product mapping.


<hibernate-mapping assembly="Domain" namespace="Domain" 
xmlns="urn:nhibernate-mapping-2.2">
  <class name="Product" table="Product" lazy="true" >
    <id name="Id" column="Id">
      <generator class="identity" />
    </id>
    <!--<many-to-one name="Product">
      <column name="Id" sql-type="int" not-null="true" />
    </many-to-one>-->
    <!--<many-to-one name="ProductSet">
      <column name="ProductSetId" sql-type="int" not-null="false" />
    </many-to-one>-->
    <many-to-one name="FeatureType">
      <column name="FeatureId" sql-type="int" not-null="true" />
    </many-to-one>
    <many-to-one name="BusinessUnit">
      <column name="BusinessUnitId" sql-type="int" not-null="false" />
    </many-to-one>
    <property name="TenantId">
      <column name="TenantId" sql-type="int" not-null="true" />
    </property>
    <property name="ProductSetId">
      <column name="ProductSetId" sql-type="int" not-null="true" />
    </property>
    <property name="Name">
      <column name="Name" sql-type="nvarchar" not-null="true" />
    </property>
    <property name="ProductCode">
      <column name="ProductCode" sql-type="nvarchar" not-null="false" />
    </property>
    <property name="Description">
      <column name="Description" sql-type="nvarchar" not-null="false" />
    </property>
    <property name="IsDeleted">
      <column name="IsDeleted" sql-type="bit" not-null="true" />
    </property>
    <property name="CreatedDate">
      <column name="CreatedDate" sql-type="datetime" not-null="true" />
    </property>
    <property name="CreatedBy">
      <column name="CreatedBy" sql-type="int" not-null="true" />
    </property>
    <property name="UpdatedDate">
      <column name="UpdatedDate" sql-type="datetime" not-null="true" />
    </property>
    <property name="UpdatedBy">
      <column name="UpdatedBy" sql-type="int" not-null="true" />
    </property>
    <!--<bag name="PaymentAppliedFees">
      <key column="ProductId" />
      <one-to-many class="PaymentAppliedFees" />
    </bag>
    <bag name="PaymentCustomFieldData">
      <key column="ProductId" />
      <one-to-many class="PaymentCustomFieldData" />
    </bag>
    <bag name="PaymentCustomFieldDefinitions">
      <key column="ProductId" />
      <one-to-many class="PaymentCustomFieldDefinitions" />
    </bag>
    <bag name="PaymentFees">
      <key column="ProductId" />
      <one-to-many class="PaymentFees" />
    </bag>
    <bag name="Product">
      <key column="Id" />
      <one-to-many class="Product" />
    </bag>-->
    <!--<bag name="Contacts">
      <key column="ProductID" />
      <one-to-many class="ProductContacts" />
    </bag>-->
    <!--<bag name="ProductCreditCards">
      <key column="ProductId" />
      <one-to-many class="ProductCreditCards" />
    </bag>
    <bag name="ProductDebitCards">
      <key column="ProductId" />
      <one-to-many class="ProductDebitCards" />
    </bag>
    <bag name="ProductJobs">
      <key column="ProductId" />
      <one-to-many class="ProductJobs" />
    </bag>
    <bag name="ProductRules">
      <key column="ProductId" />
      <one-to-many class="ProductRules" />
    </bag>
    <bag name="ProductSplitTransactionCreditCards">
      <key column="ProductId" />
      <one-to-many class="ProductSplitTransactionCreditCards" />
    </bag>-->

    <set name="Rules" table="ProductRules" cascade="all">
      <key>
        <column name="ProductId" not-null="true"/>
      </key>
      <one-to-many class="ProductRules" />      
    </set>

    <set table="ProductContacts" name="Contacts" cascade="all">
      <key>
        <column name="ProductId" not-null="true"/>
      </key>
      <many-to-many class="PodContacts" >
       
          <column name="ContactId" not-null="true"/>
        
      </many-to-many>
    </set>
  </class>
</hibernate-mapping>


Please suggest.


On Thursday, 29 September 2016 17:08:43 UTC+5, Quicoli wrote:
>
> Where exactly does this error occur? when you search for an object? If so, 
> check how you are searching... are you using SQL  sentences for searching?
>
> Do you have a class "Product"? If so, share its mapping
>
>
>
> 2016-09-29 8:20 GMT-03:00 Waqas Hameed <[email protected] <javascript:>>
> :
>
>> we are getting same error on multiple database entities so post 
>> PaymentProduct  entity mapping detail.
>>
>> Please suggest why i am getting this error on PaymentProduct entity while 
>> this exist in database.
>>
>>
>>
>> On Wednesday, 28 September 2016 18:57:17 UTC+5, Ricardo Peres wrote:
>>>
>>> The error is very simple to read: there is no Product table in the 
>>> database!
>>>
>>> RP
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "nhusers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to